Bug 1444372 - Replace promiseTopicObserved with TestUtils.topicObserved in browser_popupNotification_2.js. r=prathiksha
authoraccakks <aakanksha.jain8@gmail.com>
Mon, 12 Mar 2018 08:48:41 +0530
changeset 408155 bbc2321850f8
parent 408154 85cf354960ce
child 408156 93307191f758
push id100875
push userarchaeopteryx@coole-files.de
push dateWed, 14 Mar 2018 20:15:38 +0000
treeherdermozilla-inbound@c32a186097a2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersprathiksha
bugs1444372
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1444372 - Replace promiseTopicObserved with TestUtils.topicObserved in browser_popupNotification_2.js. r=prathiksha MozReview-Commit-ID: 3P0kJwulAjd
browser/base/content/test/popupNotifications/browser_popupNotification_2.js
--- a/browser/base/content/test/popupNotifications/browser_popupNotification_2.js
+++ b/browser/base/content/test/popupNotifications/browser_popupNotification_2.js
@@ -170,17 +170,17 @@ var tests = [
     }
   },
   // Test that popupnotifications without popups have anchor icons shown
   { id: "Test#7",
     async run() {
       let notifyObj = new BasicNotification(this.id);
       notifyObj.anchorID = "geo-notification-icon";
       notifyObj.addOptions({neverShow: true});
-      let promiseTopic = promiseTopicObserved("PopupNotifications-updateNotShowing");
+      let promiseTopic = TestUtils.topicObserved("PopupNotifications-updateNotShowing");
       showNotification(notifyObj);
       await promiseTopic;
       isnot(document.getElementById("geo-notification-icon").boxObject.width, 0,
             "geo anchor should be visible");
       goNext();
     }
   },
   // Test notification close button