Bug 1133286 - Remove nonstandard expression closures from docshell/test. r=bz

This commit is contained in:
Chris Peterson 2015-01-24 23:54:17 -08:00
parent f8a246c05b
commit aad91c6a9d
3 changed files with 9 additions and 9 deletions

View File

@ -127,7 +127,7 @@ function notifyReload() {
function setup(aCallback) {
let tab = gBrowser.selectedTab = gBrowser.addTab("about:mozilla");
let browser = tab.linkedBrowser;
registerCleanupFunction(function () gBrowser.removeTab(tab));
registerCleanupFunction(function () { gBrowser.removeTab(tab); });
whenPageShown(browser, function () {
gFirstListener = new SHistoryListener();

View File

@ -28,18 +28,18 @@ function test() {
history.removeSHistoryListener(listener);
historyListenerRemoved = true;
executeSoon(function () BrowserReload());
executeSoon(function () { BrowserReload(); });
}
return true;
},
OnHistoryReload: function () true,
OnHistoryGoBack: function () true,
OnHistoryGoForward: function () true,
OnHistoryGotoIndex: function () true,
OnHistoryPurge: function () true,
OnHistoryReplaceEntry: function () true,
OnHistoryReload: () => true,
OnHistoryGoBack: () => true,
OnHistoryGoForward: () => true,
OnHistoryGotoIndex: () => true,
OnHistoryPurge: () => true,
OnHistoryReplaceEntry: () => true,
QueryInterface: XPCOMUtils.generateQI([Ci.nsISHistoryListener,
Ci.nsISupportsWeakReference])

View File

@ -23,7 +23,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=386782
// <html><body><p>designModeDocument</p></body></html>
url: "data:text/html;charset=utf-8,<html><body><p>designModeDocument</p></body></html>",
name: 'designModeNavigate',
onload: function(doc) doc.designMode = "on",
onload(doc) { doc.designMode = "on"; },
expectedBodyBeforeEdit: '<p>designModeDocument</p>',
expectedBodyAfterEdit: '<p>EDITED designModeDocument</p>',
expectedBodyAfterSecondEdit: '<p>EDITED TWICE designModeDocument</p>',