Bug 976544 - Intermittent | browser_get_user_media.js | Unexpected Exception: TypeError: PopupNotifications.panel.firstChild is null - fourth attempt, r=Gijs.

--HG--
rename : browser/base/content/test/general/browser_get_user_media.js => browser/base/content/test/general/browser_devices_get_user_media.js
This commit is contained in:
Florian Quèze 2014-03-13 13:45:34 +01:00
parent f1aea88da3
commit 15f38c2d6b
2 changed files with 5 additions and 1 deletions

View File

@ -212,6 +212,7 @@ skip-if = os == "mac" # bug 967013, bug 926729
[browser_customize_popupNotification.js]
[browser_datareporting_notification.js]
run-if = datareporting
[browser_devices_get_user_media.js]
[browser_discovery.js]
[browser_duplicateIDs.js]
[browser_drag.js]
@ -219,7 +220,6 @@ skip-if = true # browser_drag.js is disabled, as it needs to be updated for the
[browser_findbarClose.js]
[browser_fullscreen-window-open.js]
[browser_gestureSupport.js]
[browser_get_user_media.js]
[browser_getshortcutoruri.js]
[browser_hide_removing.js]
[browser_homeDrop.js]

View File

@ -84,6 +84,7 @@ function promisePopupNotificationShown(aName, aAction) {
PopupNotifications.panel.removeEventListener("popupshown", popupNotifShown);
ok(!!PopupNotifications.getNotification(aName), aName + " notification shown");
ok(PopupNotifications.isPanelOpen, "notification panel open");
ok(!!PopupNotifications.panel.firstChild, "notification panel populated");
deferred.resolve();
@ -752,6 +753,9 @@ function test() {
});
Services.prefs.setBoolPref(PREF_PERMISSION_FAKE, true);
is(PopupNotifications._currentNotifications.length, 0,
"should start the test without any prior popup notification");
Task.spawn(function () {
for (let test of gTests) {
info(test.desc);