test_bug1271240.xul 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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"
  4. type="text/css"?>
  5. <!--
  6. https://bugzilla.mozilla.org/show_bug.cgi?id=1271240
  7. -->
  8. <window title="Mozilla Bug 1271240"
  9. xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  10. onload="loadTest();">
  11. <script type="application/javascript"
  12. src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
  13. <!-- test results are displayed in the html:body -->
  14. <body xmlns="http://www.w3.org/1999/xhtml">
  15. <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1271240"
  16. target="_blank">Mozilla Bug 1271240</a>
  17. </body>
  18. <!-- test code goes here -->
  19. <script type="application/javascript">
  20. <![CDATA[
  21. /** Test for Bug 1271240 **/
  22. SimpleTest.waitForExplicitFinish();
  23. window.addEventListener('message', (event) => {
  24. if (event.data == 'finish') {
  25. SimpleTest.finish();
  26. }
  27. });
  28. function loadTest() {
  29. window.open("file_bug1271240.xul", "", "chrome");
  30. }
  31. ]]>
  32. </script>
  33. </window>