mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1133286 - Remove nonstandard expression closures from docshell/test. r=bz
This commit is contained in:
parent
f8a246c05b
commit
aad91c6a9d
@ -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();
|
||||
|
@ -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])
|
||||
|
@ -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>',
|
||||
|
Loading…
Reference in New Issue
Block a user