tor-browser

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

test_bug735641.html (1109B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=735641
      5 -->
      6 <head>
      7  <meta charset="utf-8">
      8  <title>Test for Bug 735641</title>
      9  <script src="/tests/SimpleTest/SimpleTest.js"></script>
     10  <script src="/tests/SimpleTest/EventUtils.js"></script>
     11  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     12 </head>
     13 <body>
     14 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=735641">Mozilla Bug 735641</a>
     15 <p id="display"></p>
     16 <div id="content" style="display: none">
     17  
     18 </div>
     19 <pre id="test">
     20 <script type="application/javascript">
     21 
     22 /** Test for Bug 735641 */
     23 
     24 SimpleTest.waitForExplicitFinish();
     25 
     26 var w;
     27 
     28 function runTest() {
     29  try {
     30    var s = w.document.getSelection();
     31    s.selectAllChildren(w.document.body);
     32    synthesizeMouse(w.document.body,1,1,{},w);
     33    ok(s.isCollapsed,"mouse click on <body> did reset the selection in image document");
     34  } finally {
     35    w.close();
     36  }
     37  SimpleTest.finish();
     38 }
     39 
     40 w=window.open("file_Dolske.png","_blank");
     41 w.addEventListener("load", function() {setTimeout(runTest,0)});
     42 
     43 </script>
     44 </pre>
     45 </body>
     46 </html>