file_bug1224790-2_modal.xhtml (1002B)
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 var nonModal = null; 22 23 function runTests() { 24 nonModal = window.openDialog('file_bug1224790-2_nonmodal.xhtml', '', 'dialog=no'); 25 } 26 27 function nonModalOpened() { 28 window.close(); 29 nonModal.modalClosed(window.arguments[0]); 30 } 31 32 SimpleTest.waitForFocus(runTests); 33 ]]> 34 </script> 35 </dialog> 36 </window>