Bug 1444372 - Replace promiseTopicObserved with TestUtils.topicObserved in browser_popupNotification_2.js. r?prathiksha
MozReview-Commit-ID: 3P0kJwulAjd
--- 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