Bug 1489301 - Part 3: Fix test expecting interfaces not exposed on System, r=bzbarsky
authorNika Layzell <nika@thelayzells.com>
Mon, 22 Oct 2018 10:03:52 -0400
changeset 490913 a43d864f8502a84d46edab409c0dcc17f732f0eb
parent 490912 dc5a91eadc49803467155a771e5de5a4f96dbbde
child 490914 fbfcfc27ab30434eaac667cbbf9d33ded0abb571
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewersbzbarsky
bugs1489301
milestone65.0a1
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
dom/base/test/chrome/file_bug1139964.xul
--- 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);