Closed Bug 650578 Opened 13 years ago Closed 13 years ago

browser_addons tests is not designed for Android notifications

Categories

(Firefox for Android Graveyard :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: mfinkle, Assigned: wesj)

References

Details

(Whiteboard: [mobile_unittests])

Attachments

(1 file, 1 obsolete file)

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.
Blocks: 650686
Attached patch disable for now (obsolete) — Splinter Review
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)
this patch looks fine to me.
Whiteboard: [mobile_unittests]
Attached patch PatchSplinter Review
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)
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+
http://hg.mozilla.org/mozilla-central/rev/5be1192ae378
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Attachment #526645 - Attachment is obsolete: true
Attachment #526645 - Flags: review?(mark.finkle)
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
bugspam
Assignee: nobody → wjohnston
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: