docshell/test/chrome/window.template.txt

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/docshell/test/chrome/window.template.txt	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,44 @@
     1.4 +<?xml version="1.0"?>
     1.5 +<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
     1.6 +
     1.7 +<window id="{BUGNUMBER}Test"
     1.8 +        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     1.9 +        width="600"
    1.10 +        height="600"
    1.11 +        onload="setTimeout(nextTest,0);"
    1.12 +        title="bug {BUGNUMBER} test">
    1.13 +
    1.14 +  <script type="application/javascript"
    1.15 +  src="docshell_helpers.js">
    1.16 +  </script>
    1.17 +
    1.18 +  <script type="application/javascript"><![CDATA[
    1.19 +  
    1.20 +    // Define the generator-iterator for the tests.
    1.21 +    var tests = testIterator();
    1.22 +
    1.23 +    ////
    1.24 +    // Execute the next test in the generator function.
    1.25 +    //
    1.26 +    function nextTest() {
    1.27 +      tests.next();
    1.28 +    }
    1.29 +
    1.30 +    ////
    1.31 +    // Generator function for test steps for bug {BUGNUMBER}:  
    1.32 +    // Description goes here.
    1.33 +    //
    1.34 +    function testIterator()
    1.35 +    {
    1.36 +      // Test steps go here.  See bug303267_window.xul for an example.
    1.37 +
    1.38 +      // Tell the framework the test is finished.  Include the final 'yield' 
    1.39 +      // statement to prevent a StopIteration exception from being thrown.
    1.40 +      finish();
    1.41 +      yield undefined;
    1.42 +    }
    1.43 +    
    1.44 +  ]]></script>
    1.45 +
    1.46 +  <browser type="content-primary" flex="1" id="content" src="about:blank"/>
    1.47 +</window>

mercurial