Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: os == 'android'
- Manifest: js/xpconnect/tests/chrome/chrome.toml
<?xml version="1.0"?>
type="text/css"?>
<!--
-->
<!-- test results are displayed in the html:body -->
</body>
<!-- test code goes here -->
<script type="application/javascript"><![CDATA[
var sandbox = new Cu.Sandbox(window);
var script = "(function (obj, type) { return obj instanceof type; })";
var instanceOf = Cu.evalInSandbox(script, sandbox, "1.8", "Test", 1);
ok(!instanceOf({}, Window), "instanceOf from the sandbox gets the right result");
]]></script>
</window>