docshell/test/chrome/window.template.txt

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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>

mercurial