window.template.txt (1189B)
1 <?xml version="1.0"?> 2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?> 3 4 <window id="{BUGNUMBER}Test" 5 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 6 width="600" 7 height="600" 8 onload="setTimeout(nextTest,0);" 9 title="bug {BUGNUMBER} test"> 10 11 <script type="application/javascript" 12 src="docshell_helpers.js"> 13 </script> 14 15 <script type="application/javascript"><![CDATA[ 16 17 // Define the generator-iterator for the tests. 18 var tests = testIterator(); 19 20 //// 21 // Execute the next test in the generator function. 22 // 23 function nextTest() { 24 tests.next(); 25 } 26 27 //// 28 // Generator function for test steps for bug {BUGNUMBER}: 29 // Description goes here. 30 // 31 function testIterator() 32 { 33 // Test steps go here. See bug303267_window.xhtml for an example. 34 35 // Tell the framework the test is finished. Include the final 'yield' 36 // statement to prevent a StopIteration exception from being thrown. 37 finish(); 38 yield undefined; 39 } 40 41 ]]></script> 42 43 <browser type="content" primary="true" flex="1" id="content" src="about:blank"/> 44 </window>