Bug 752216. (Bv1-FF) browser_popupNotification.js: Fix nits. r=gavin.

DONTBUILD (test-only, trivial).
This commit is contained in:
Serge Gautherie 2012-05-06 21:44:03 +02:00
Родитель d3946f0d23
Коммит d61997cf5c
1 изменённых файлов: 9 добавлений и 9 удалений

Просмотреть файл

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