test_bug398982-2.xul 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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 398982">
  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. <popupgroup style="position: absolute; ">
  12. <tooltip type="zzz">
  13. <treecols/>
  14. </tooltip>
  15. <script xmlns="http://www.w3.org/1999/xhtml" class="testbody" type="application/javascript">
  16. <![CDATA[
  17. function doe() {
  18. document.getElementsByTagName('popupgroup')[0].removeAttribute('style');
  19. is(0, 0, "Test is successful if we get here without crashing");
  20. SimpleTest.finish();
  21. }
  22. function do_test() {
  23. setTimeout(doe, 200);
  24. }
  25. SimpleTest.waitForExplicitFinish();
  26. addLoadEvent(do_test);
  27. ]]>
  28. </script>
  29. </popupgroup>
  30. <html:body></html:body> <!-- XXX SimpleTest.showReport() requires a html:body -->
  31. </window>