test_bug749367.xhtml (1103B)
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=749367 6 --> 7 <window title="Mozilla Bug 749367" 8 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 9 onload="setTimeout(runTests, 0);"> 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 <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=486990" 15 target="_blank">Mozilla Bug 486990</a> 16 </body> 17 18 <!-- test code goes here --> 19 <script type="text/template"> 20 <![CDATA[ 21 SimpleTest.waitForExplicitFinish(); 22 function runTests() { 23 ok(false, "Shouldn't execute"); 24 SimpleTest.finish(); 25 } 26 ]]> 27 </script> 28 29 <script type="text/javascript"> 30 <![CDATA[ 31 SimpleTest.waitForExplicitFinish(); 32 function runTests() { 33 ok(true, "Should execute"); 34 SimpleTest.finish(); 35 } 36 ]]> 37 </script> 38 39 </window>