Closed
Bug 650578
Opened 14 years ago
Closed 14 years ago
browser_addons tests is not designed for Android notifications
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: mfinkle, Assigned: wesj)
References
Details
(Whiteboard: [mobile_unittests])
Attachments
(1 file, 1 obsolete file)
1.16 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
browser_addons.js has explicit tests for toaster alert style popups. On Android, we don't use toaster alerts, we use native alerts. We need to update the tests to handle native alerts or conditionally remove the toaster alert tests.
Comment 1•14 years ago
|
||
One part pursuit of green, one part suspicion that some of the other failures are the result of a previous timeout leaving the browser in an unexpected state that later tests aren't cleaning up before they start.
Attachment #526645 -
Flags: review?(mark.finkle)
Assignee | ||
Comment 3•14 years ago
|
||
This should fix the failure. Things look fine on Desktop (need to add the patch in bug 650123 which I need to push). Not sure how to test on device.
Attachment #526783 -
Flags: review?(mark.finkle)
Reporter | ||
Comment 4•14 years ago
|
||
Comment on attachment 526783 [details] [diff] [review]
Patch
>- waitFor(doTest, function() { return AlertsHelper.container.hidden == false; });
>+ let sysInfo = Cc["@mozilla.org/system-info;1"].getService(Ci.nsIPropertyBag2);
>+ gDevice = sysInfo.get("device");
>+ if (gDevice != null)
gDevice is not declared, but let's just drop it anyway.
if (sysInfo.get("device") != null)
Attachment #526783 -
Flags: review?(mark.finkle) → review+
Assignee | ||
Comment 5•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•14 years ago
|
Attachment #526645 -
Attachment is obsolete: true
Attachment #526645 -
Flags: review?(mark.finkle)
Comment 6•14 years ago
|
||
VERIFIED FIXED on:
Build ID: Mozilla /5.0 (Android;Linux armv7l;rv:6.0a1) Gecko/20110524 Firefox/6.0a1 Fennec/6.0a1
Device: HTC Desire Z (Android 2.2)
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•