test_elements_proto.xhtml (972B)
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 <window title="Mozilla Bug 861493" 6 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> 7 <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/> 8 9 <body xmlns="http://www.w3.org/1999/xhtml"> 10 </body> 11 12 <script type="application/javascript"> 13 <![CDATA[ 14 const XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; 15 16 SimpleTest.waitForExplicitFinish(); 17 18 addLoadEvent(() => { 19 ok(XULTextElement.isInstance(document.createElementNS(XUL_NS, "label")), 20 `<label> should be of XULTextElement type`); 21 22 ok(XULTextElement.isInstance(document.createElementNS(XUL_NS, "description")), 23 `<description> should be of XULTextElement type`); 24 25 SimpleTest.finish(); 26 }); 27 ]]> 28 </script> 29 </window>