test_bug749367.xul 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?xml version="1.0"?>
  2. <?xml-stylesheet type="text/css" href="chrome://global/skin"?>
  3. <?xml-stylesheet type="text/css" href="/tests/SimpleTest/test.css"?>
  4. <!--
  5. https://bugzilla.mozilla.org/show_bug.cgi?id=749367
  6. -->
  7. <window title="Mozilla Bug 749367"
  8. xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  9. onload="setTimeout(runTests, 0);">
  10. <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"/>
  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=486990"
  14. target="_blank">Mozilla Bug 486990</a>
  15. </body>
  16. <!-- test code goes here -->
  17. <script type="text/template">
  18. <![CDATA[
  19. SimpleTest.waitForExplicitFinish();
  20. function runTests() {
  21. ok(false, "Shouldn't execute");
  22. SimpleTest.finish();
  23. }
  24. ]]>
  25. </script>
  26. <script type="text/javascript">
  27. <![CDATA[
  28. SimpleTest.waitForExplicitFinish();
  29. function runTests() {
  30. ok(true, "Should execute");
  31. SimpleTest.finish();
  32. }
  33. ]]>
  34. </script>
  35. </window>