fune/dom/tests/mochitest/chrome/file_DOM_element_instanceof.xul
Kris Maglione f180f12646 Bug 1560400: Part 1 - Support remote frames in Window indexed getters. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D35471

--HG--
extra : rebase_source : b326799f8ced75068f7e7fec6edbd39455cdb9b1
extra : source : 84633034590f2d1a4c336f9653e6c542f3a09039
2019-06-20 13:52:55 -07:00

32 lines
1.2 KiB
XML

<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="chrome://global/skin"?>
<window title="Mozilla Bug 824917"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<iframe type="content"></iframe>
<script type="application/javascript">
<![CDATA[
/** Test for Bug 799299 **/
var SimpleTest = opener.wrappedJSObject.SimpleTest;
var ok = opener.wrappedJSObject.ok;
// Note: We can't use frames[0] here because the type="content" attribute
// isolates it into a separate browsing context hierarchy.
var doc = document.querySelector("iframe").contentDocument;
ok(doc.createElement("body") instanceof HTMLBodyElement,
"Should be instance of HTMLBodyElement");
ok(doc.createElement("div") instanceof HTMLDivElement,
"Should be instance of HTMLDivElement");
ok(doc.createElement("frameset") instanceof HTMLFrameSetElement,
"Should be instance of HTMLFrameSetElement");
ok(doc.createElement("h1") instanceof HTMLHeadingElement,
"Should be instance of HTMLHeadingElement");
ok(doc.createElement("label") instanceof HTMLLabelElement,
"Should be instance of HTMLLabelElement");
window.close();
opener.wrappedJSObject.SimpleTest.finish();
]]>
</script>
</window>