docshell/test/chrome/window.template.txt

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <?xml version="1.0"?>
     2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
     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">
    11   <script type="application/javascript"
    12   src="docshell_helpers.js">
    13   </script>
    15   <script type="application/javascript"><![CDATA[
    17     // Define the generator-iterator for the tests.
    18     var tests = testIterator();
    20     ////
    21     // Execute the next test in the generator function.
    22     //
    23     function nextTest() {
    24       tests.next();
    25     }
    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.xul for an example.
    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     }
    41   ]]></script>
    43   <browser type="content-primary" flex="1" id="content" src="about:blank"/>
    44 </window>

mercurial