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 533596"
<!-- test results are displayed in the html:body -->
<iframe type="content"
onload="go()"
id="ifr">
</iframe>
</body>
<!-- test code goes here -->
<script type="application/javascript"><![CDATA[
const utils = SpecialPowers.DOMWindowUtils;
function go() {
var wrappedWin = $('ifr').contentWindow;
is(typeof wrappedWin.expando, 'undefined', "Shouldn't be able to see the expando");
var unwrapped = wrappedWin.wrappedJSObject;
var expando = unwrapped.expando;
isnot(expando, 'undefined', 'properly wrapped');
is(typeof expando.querySelector, 'function', 'double wrapped');
SimpleTest.finish();
}
SimpleTest.waitForExplicitFinish();
]]></script>
</window>