Commits

Satyr Murky committed 02018b8

tests: Removed testSandboxFactoryProtectsSandbox.

Comments (0)

Files changed (1)

ubiquity/tests/test_all.js

   this.assert(!Utils.isArray({length: 0}));
 }
 
-function testSandboxFactoryProtectsSandbox() {
-  // This is a regression test for #434.
-  this.skipIfXPCShell();
-
-  var sbf = new SandboxFactory({}, globalObj);
-  var sandbox = sbf.makeSandbox();
-  sandbox.Utils = Utils;
-  var code = '' + <![CDATA[
-    try {
-      '' + Utils.currentChromeWindow.document
-           .querySelector('#ubiquity-browser').contentWindow
-    } catch([]) {}
-  ]]>;
-  this.assertEquals(
-    sbf.evalInSandbox(
-      code, sandbox,
-      [{filename: "__arbitraryString://blarg/",
-        lineNumber: 1,
-        length: code.length}]),
-    "[object XrayWrapper [object Window]]");
-}
-
 function testXmlScriptCommandsParser() {
   Cu.import("resource://ubiquity/modules/xml_script_commands_parser.js");
   var code = parseCodeFromXml(