test_bug775972.xul 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?xml version="1.0"?>
  2. <?xml-stylesheet type="text/css" href="chrome://global/skin"?>
  3. <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
  4. <!--
  5. https://bugzilla.mozilla.org/show_bug.cgi?id=775972
  6. -->
  7. <window title="Mozilla Bug 775972"
  8. xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  9. onload="test()">
  10. <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
  11. <!-- test results are displayed in the html:body -->
  12. <body xmlns="http://www.w3.org/1999/xhtml">
  13. <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=775972"
  14. target="_blank">Mozilla Bug 775972</a>
  15. </body>
  16. <hbox id="container"><label value="test" id=""/></hbox>
  17. <!-- test code goes here -->
  18. <script type="application/javascript">
  19. <![CDATA[
  20. /** Test for Bug 775972 **/
  21. function test() {
  22. var c = document.getElementById("container");
  23. var clone = c.cloneNode(true);
  24. document.documentElement.appendChild(clone);
  25. ok(true, "This shouldn't crash!");
  26. }
  27. ]]>
  28. </script>
  29. </window>