|
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"> |
|
17 |
|
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); |
|
26 |
|
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); |
|
32 |
|
33 newWindow.close(); |
|
34 </script> |
|
35 </pre> |
|
36 </body> |