file_bug1224790-1_modal.xhtml (959B)
1 <?xml version="1.0"?> 2 <?xml-stylesheet type="text/css" href="chrome://global/skin"?> 3 <?xml-stylesheet type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"?> 4 <!-- 5 https://bugzilla.mozilla.org/show_bug.cgi?id=1224790 6 --> 7 <window title="Mozilla Bug 1224790" 8 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> 9 <dialog buttons="accept"> 10 <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/> 11 12 <!-- test results are displayed in the html:body --> 13 <body xmlns="http://www.w3.org/1999/xhtml"> 14 </body> 15 16 <!-- test code goes here --> 17 <script type="application/javascript"> 18 <![CDATA[ 19 /** Test for Bug 1224790 */ 20 21 function runTests() { 22 window.openDialog('file_bug1224790-1_nonmodal.xhtml', '', 'dialog=no'); 23 } 24 25 function nonModalClosed() { 26 window.close(); 27 window.arguments[0].modalClosed(); 28 } 29 30 SimpleTest.waitForFocus(runTests); 31 ]]> 32 </script> 33 </dialog> 34 </window>