Bug 1444372 - Replace promiseTopicObserved with TestUtils.topicObserved in browser_popupNotification_2.js. r?prathiksha draft
authoraccakks <aakanksha.jain8@gmail.com>
Mon, 12 Mar 2018 08:48:41 +0530
changeset 767019 cc77266ac6fce47eba86662aa92552c85d0a3403
parent 765547 415e9b18ca2a1532086d5e2d5d21343cd004b5fd
child 767397 01b892fabe1d32742bc6632d841627edab7e47db
push id102481
push userbmo:aakanksha.jain8@gmail.com
push dateTue, 13 Mar 2018 19:54:41 +0000
reviewersprathiksha
bugs1444372
milestone60.0a1
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