Loading browser/base/content/test/browser_popupNotification.js +9 −9 Original line number Diff line number Diff line Loading @@ -191,7 +191,7 @@ var wrongBrowserNotification; var tests = [ { // Test #0 run: function () { this.notifyObj = new basicNotification(), this.notifyObj = new basicNotification(); showNotification(this.notifyObj); }, onShown: function (popup) { Loading @@ -206,7 +206,7 @@ var tests = [ }, { // Test #1 run: function () { this.notifyObj = new basicNotification(), this.notifyObj = new basicNotification(); showNotification(this.notifyObj); }, onShown: function (popup) { Loading @@ -221,7 +221,7 @@ var tests = [ }, { // Test #2 run: function () { this.notifyObj = new basicNotification(), this.notifyObj = new basicNotification(); this.notification = showNotification(this.notifyObj); }, onShown: function (popup) { Loading Loading @@ -285,7 +285,7 @@ var tests = [ // notification. { // Test #6 run: function () { this.notifyObj = new basicNotification(), this.notifyObj = new basicNotification(); // Show the same notification twice this.notification1 = showNotification(this.notifyObj); this.notification2 = showNotification(this.notifyObj); Loading Loading @@ -332,7 +332,7 @@ var tests = [ // Test notification without mainAction { // Test #8 run: function () { this.notifyObj = new basicNotification(), this.notifyObj = new basicNotification(); this.notifyObj.mainAction = null; this.notification = showNotification(this.notifyObj); }, Loading Loading @@ -568,7 +568,7 @@ var tests = [ // Test notification "Not Now" menu item { // Test #17 run: function () { this.notifyObj = new basicNotification(), this.notifyObj = new basicNotification(); this.notification = showNotification(this.notifyObj); }, onShown: function (popup) { Loading @@ -584,7 +584,7 @@ var tests = [ // Test notification close button { // Test #18 run: function () { this.notifyObj = new basicNotification(), this.notifyObj = new basicNotification(); this.notification = showNotification(this.notifyObj); }, onShown: function (popup) { Loading Loading @@ -677,7 +677,7 @@ var tests = [ this.notification2.remove(); ok(this.notifyObj2.removedCallbackTriggered, "removed callback triggered"); } ], ] }, // Test that multiple notification icons are removed when switching tabs { // Test #22 Loading Loading @@ -718,7 +718,7 @@ var tests = [ gBrowser.selectedTab = this.oldSelectedTab; this.notificationOld.remove(); } ], ] } ]; Loading Loading
browser/base/content/test/browser_popupNotification.js +9 −9 Original line number Diff line number Diff line Loading @@ -191,7 +191,7 @@ var wrongBrowserNotification; var tests = [ { // Test #0 run: function () { this.notifyObj = new basicNotification(), this.notifyObj = new basicNotification(); showNotification(this.notifyObj); }, onShown: function (popup) { Loading @@ -206,7 +206,7 @@ var tests = [ }, { // Test #1 run: function () { this.notifyObj = new basicNotification(), this.notifyObj = new basicNotification(); showNotification(this.notifyObj); }, onShown: function (popup) { Loading @@ -221,7 +221,7 @@ var tests = [ }, { // Test #2 run: function () { this.notifyObj = new basicNotification(), this.notifyObj = new basicNotification(); this.notification = showNotification(this.notifyObj); }, onShown: function (popup) { Loading Loading @@ -285,7 +285,7 @@ var tests = [ // notification. { // Test #6 run: function () { this.notifyObj = new basicNotification(), this.notifyObj = new basicNotification(); // Show the same notification twice this.notification1 = showNotification(this.notifyObj); this.notification2 = showNotification(this.notifyObj); Loading Loading @@ -332,7 +332,7 @@ var tests = [ // Test notification without mainAction { // Test #8 run: function () { this.notifyObj = new basicNotification(), this.notifyObj = new basicNotification(); this.notifyObj.mainAction = null; this.notification = showNotification(this.notifyObj); }, Loading Loading @@ -568,7 +568,7 @@ var tests = [ // Test notification "Not Now" menu item { // Test #17 run: function () { this.notifyObj = new basicNotification(), this.notifyObj = new basicNotification(); this.notification = showNotification(this.notifyObj); }, onShown: function (popup) { Loading @@ -584,7 +584,7 @@ var tests = [ // Test notification close button { // Test #18 run: function () { this.notifyObj = new basicNotification(), this.notifyObj = new basicNotification(); this.notification = showNotification(this.notifyObj); }, onShown: function (popup) { Loading Loading @@ -677,7 +677,7 @@ var tests = [ this.notification2.remove(); ok(this.notifyObj2.removedCallbackTriggered, "removed callback triggered"); } ], ] }, // Test that multiple notification icons are removed when switching tabs { // Test #22 Loading Loading @@ -718,7 +718,7 @@ var tests = [ gBrowser.selectedTab = this.oldSelectedTab; this.notificationOld.remove(); } ], ] } ]; Loading