Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
type="text/css"?>
<!--
-->
<window title="Mozilla Bug 601803"
<!-- test results are displayed in the html:body -->
target="_blank">Mozilla Bug 616992</a>
<!-- test code goes here -->
<script type="application/javascript"><![CDATA[
/** Test for Bug 616992 **/
var sandbox = new Cu.Sandbox(window);
sandbox.w = window;
var actual = Cu.evalInSandbox("Object.keys(w.NodeFilter)", sandbox).sort().toString();
var expected = Object.keys(NodeFilter).sort().toString();
is(actual, expected, "interface constants are visible inside sandboxes");
]]></script>
</body>
</window>