2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
6 waitForExplicitFinish();
8 var newWin = openDialog(location, "", "chrome,all,dialog=no", "about:blank");
9 registerCleanupFunction(function () {
12 newWin.addEventListener("load", function test_win_onLoad() {
13 newWin.removeEventListener("load", test_win_onLoad, false);
16 newWin.gURLBar.parentNode.removeChild(newWin.gURLBar);
18 waitForFocus(function () {
19 let PN = newWin.PopupNotifications;
21 let notification = PN.show(newWin.gBrowser.selectedBrowser, "some-notification", "Some message");
22 ok(notification, "showed the notification");
23 ok(PN.isPanelOpen, "panel is open");
24 is(PN.panel.anchorNode, newWin.gBrowser.selectedTab, "notification is correctly anchored to the tab");
26 ok(false, "threw exception: " + ex);