test_bug398982-1.xul 1.0 KB

1234567891011121314151617181920212223242526272829303132
  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. <menuitem xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  5. xmlns:html="http://www.w3.org/1999/xhtml"
  6. style="position: absolute; ">
  7. <!--
  8. https://bugzilla.mozilla.org/show_bug.cgi?id=398982
  9. -->
  10. <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
  11. <tooltip type="zzz">
  12. <treecols/>
  13. </tooltip>
  14. <script xmlns="http://www.w3.org/1999/xhtml" class="testbody" type="application/javascript">
  15. <![CDATA[
  16. function doe() {
  17. document.getElementsByTagName('menuitem')[0].removeAttribute('style');
  18. is(0, 0, "Test is successful if we get here without crashing");
  19. SimpleTest.finish();
  20. }
  21. function do_test() {
  22. setTimeout(doe, 200);
  23. }
  24. SimpleTest.waitForExplicitFinish();
  25. addLoadEvent(do_test);
  26. ]]>
  27. </script>
  28. <html:body></html:body> <!-- XXX SimpleTest.showReport() requires a html:body -->
  29. </menuitem>