test_anonymousContent_xul_window.xhtml (913B)
1 <?xml version="1.0"?> 2 <?xml-stylesheet type="text/css" href="chrome://global/skin"?> 3 <?xml-stylesheet type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"?> 4 <!-- 5 https://bugzilla.mozilla.org/show_bug.cgi?id=1020244 6 Check that XUL windows don't make insertAnonymousContent crash. 7 --> 8 <window title="Anonymous content in a XUL window" 9 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> 10 <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/> 11 12 <!-- test results are displayed in the html:body --> 13 <body xmlns="http://www.w3.org/1999/xhtml"></body> 14 <box>This is a test box</box> 15 16 <script type="application/javascript"> 17 // Insert content 18 let testElement = document.querySelector("box"); 19 document.insertAnonymousContent(testElement); 20 ok(true, 21 "Inserting anonymous content in a XUL document did not crash") 22 </script> 23 </window>