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 -->
<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>