widget/tests/test_bug413277.html

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 <!DOCTYPE HTML>
     2 <html>
     3 <!--
     4 https://bugzilla.mozilla.org/show_bug.cgi?id=413277
     5 -->
     6 <head>
     7   <title>Test for Bug 413277</title>
     8   <script type="text/javascript"
     9           src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
    10   <link rel="stylesheet" type="text/css"
    11           href="chrome://mochikit/content/tests/SimpleTest/test.css" />
    12 </head>
    13 <body>
    14 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=413277">Mozilla Bug 413277</a>
    15 <p id="display"></p>
    16 <div id="content" style="display: none">
    18 </div>
    19 <pre id="test">
    20 <script class="testbody" type="application/javascript">
    21   var atts='width=100, height=100, top=100, screenY=100';
    22   atts += ', left=100, screenX=100, toolbar=no';
    23   atts += ', location=no, directories=no, status=no';
    24   atts += ', menubar=no, scrollbars=no, resizable=no';
    25   var newWindow = window.open('_blank', 'win_name', atts);
    27   newWindow.resizeBy(1000000, 1000000);
    28   SimpleTest.is(newWindow.outerWidth, newWindow.screen.availWidth, true);
    29   SimpleTest.is(newWindow.outerHeight, newWindow.screen.availHeight, true);
    30   SimpleTest.is(newWindow.screenY, newWindow.screen.availTop, true);
    31   SimpleTest.is(newWindow.screenX, newWindow.screen.availLeft, true);
    33   newWindow.close();
    34 </script>
    35 </pre>
    36 </body>

mercurial