Bug 1489301 - Part 3: Fix test expecting interfaces not exposed on System, r=bzbarsky
The `Window` interface is now exposed on system globals, so the check is now
invalid.
Differential Revision:
https://phabricator.services.mozilla.com/D9403
--- a/dom/base/test/chrome/file_bug1139964.xul
+++ b/dom/base/test/chrome/file_bug1139964.xul
@@ -27,27 +27,27 @@ https://bugzilla.mozilla.org/show_bug.cg
hasWindow: ("Window" in this),
});
}
function processListener(m) {
ppm.removeMessageListener(msgName, processListener);
ok(m.data.hasPromise, "ProcessGlobal should have Promise object in the global scope!");
ok(m.data.hasTextEncoder, "ProcessGlobal should have TextEncoder object in the global scope!");
- ok(!m.data.hasWindow, "ProcessGlobal should not have Window object in the global scope!");
+ ok(m.data.hasWindow, "ProcessGlobal should have Window object in the global scope!");
messageManager.addMessageListener(msgName, tabListener)
messageManager.loadFrameScript("data:,(" + mmScriptForPromiseTest.toString() + ")()", true);
}
function tabListener(m) {
messageManager.removeMessageListener(msgName, tabListener);
ok(m.data.hasPromise, "TabChildGlobal should have Promise object in the global scope!");
ok(m.data.hasTextEncoder, "TabChildGlobal should have TextEncoder object in the global scope!");
- ok(!m.data.hasWindow, "TabChildGlobal should not have Window object in the global scope!");
+ ok(m.data.hasWindow, "TabChildGlobal should have Window object in the global scope!");
opener.setTimeout("done()", 0);
window.close();
}
function run() {
ppm.addMessageListener(msgName, processListener)
ppm.loadProcessScript("data:,(" + mmScriptForPromiseTest.toString() + ")()", true);