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