tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_bug381167.xhtml (1271B)


      1 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
      2 <!--
      3 https://bugzilla.mozilla.org/show_bug.cgi?id=381167
      4 -->
      5 <head>
      6  <title>Test for Bug 381167</title>
      7  <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
      8  <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
      9 </head>
     10 <body>
     11 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=381167">Mozilla Bug 381167</a>
     12 <p id="display"></p>
     13 <div id="content" style="display: none">
     14  
     15 </div>
     16 <xul:tree>
     17  <xul:tree>
     18    <xul:treechildren/>
     19    <xul:treecol/>
     20  </xul:tree>
     21 </xul:tree>
     22 <pre id="test">
     23 <script type="application/javascript">
     24 
     25 /** Test for Bug 381167 */
     26 
     27 SimpleTest.waitForExplicitFinish();
     28 
     29 function closeit() {
     30  var evt = new KeyboardEvent("keypress", {
     31    bubbles: true,
     32    cancelable: true,
     33    view: window,
     34    ctrlKey: true,
     35    keyCode: 'W'.charCodeAt(0),
     36    charCode: 0,
     37  });
     38  window.dispatchEvent(evt);
     39 
     40  setTimeout(finish, 200);
     41 }
     42 window.addEventListener('load', closeit);
     43 
     44 function finish()
     45 {
     46  ok(true, "This is a mochikit version of a crash test. To complete is to pass.");
     47  SimpleTest.finish();
     48 }
     49 </script>
     50 </pre>
     51 </body>
     52 </html>