4 https://bugzilla.mozilla.org/show_bug.cgi?id=413277
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" />
13 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=413277">Mozilla Bug
413277</a>
15 <div id=
"content" style=
"display: none">
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);