tor-browser

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

test_bug344861.html (935B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=344861
      5 -->
      6 <head>
      7  <title>Test for Bug 344861</title>
      8  <script src="/tests/SimpleTest/SimpleTest.js"></script>        
      9  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
     10 </head>
     11 <body>
     12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=344861">Mozilla Bug 344861</a>
     13 <p id="display"></p>
     14 <div id="content" style="display: none">
     15  
     16 </div>
     17 <pre id="test">
     18 <script class="testbody" type="text/javascript">
     19 
     20 /** Test for Bug 344861 */
     21 SimpleTest.waitForExplicitFinish();
     22 
     23 var newwindow = window.open("/", "testwindow", "width=200,height=200");
     24 newwindow.onload = function() {
     25  is(newwindow.innerHeight, 200, "window.open has correct height dimensions");
     26  is(newwindow.innerWidth, 200, "window.open has correct width dimensions");
     27  SimpleTest.finish();
     28  newwindow.close();
     29 };
     30 </script>
     31 </pre>
     32 </body>
     33 </html>
     34 
     35