Backed out changeset ce9c917d3e22 (bug 582361) for causing wpt failures on scroll...
[gecko.git] / widget / tests / test_bug413277.html
blobd9f6aaa807112f428bbe77219d8acd274cbf1e6f
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 src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel="stylesheet" type="text/css"
10 href="chrome://mochikit/content/tests/SimpleTest/test.css" />
11 </head>
12 <body>
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=413277">Mozilla Bug 413277</a>
14 <p id="display"></p>
15 <div id="content" style="display: none">
17 </div>
18 <pre id="test">
19 <script class="testbody" type="application/javascript">
20 var atts = "width=100, height=100, top=100, screenY=100";
21 atts += ", left=100, screenX=100, toolbar=no";
22 atts += ", location=no, directories=no, status=no";
23 atts += ", menubar=no, scrollbars=no, resizable=no";
24 var newWindow = window.open("_blank", "win_name", atts);
26 newWindow.resizeBy(1000000, 1000000);
27 SimpleTest.is(newWindow.outerWidth, newWindow.screen.availWidth, true);
28 SimpleTest.is(newWindow.outerHeight, newWindow.screen.availHeight, true);
29 SimpleTest.is(newWindow.screenY, newWindow.screen.availTop, true);
30 SimpleTest.is(newWindow.screenX, newWindow.screen.availLeft, true);
32 newWindow.close();
33 </script>
34 </pre>
35 </body>