test_bug372685.xul 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
  3. <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
  4. <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  5. xmlns:html="http://www.w3.org/1999/xhtml"
  6. title="Test for Bug 372685">
  7. <!--
  8. https://bugzilla.mozilla.org/show_bug.cgi?id=372685
  9. -->
  10. <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
  11. <menuitem id="a" style="display: -moz-stack;">
  12. <box id="b" style="display: -moz-popup; ">
  13. <box id="c" style="position: fixed;"></box>
  14. </box>
  15. </menuitem>
  16. <script class="testbody" type="application/javascript">
  17. <![CDATA[
  18. function removestyles(i){
  19. document.getElementById('a').removeAttribute('style');
  20. var x=document.getElementById('html_body').offsetHeight;
  21. is(0, 0, "this is a crash test, so always ok if we survive this far");
  22. SimpleTest.finish();
  23. }
  24. function do_test() {
  25. setTimeout(removestyles,200);
  26. }
  27. SimpleTest.waitForExplicitFinish();
  28. ]]>
  29. </script>
  30. <body id="html_body" xmlns="http://www.w3.org/1999/xhtml">
  31. <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=372685">Mozilla Bug 372685</a>
  32. <p id="display"></p>
  33. <pre id="test">
  34. </pre>
  35. <script>
  36. addLoadEvent(do_test);
  37. </script>
  38. </body>
  39. </window>