4 <title>Test for Bug
594140</title>
5 <script type=
"text/javascript" src=
"/tests/SimpleTest/SimpleTest.js"></script>
6 <script type=
"text/javascript" src=
"/tests/SimpleTest/WindowSnapshot.js"></script>
7 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
10 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=594140">Mozilla Bug
594140</a>
14 <script class=
"testbody" type=
"text/javascript">
15 SimpleTest.waitForExplicitFinish();
17 SimpleTest.waitForFocus(function() {
18 SpecialPowers.setFullZoom(window,
2);
21 var w = window.open(
"about:blank",
"",
"width=200,height=100");
22 SimpleTest.waitForFocus(function() {
23 ok(w.innerWidth <=
402 && w.innerWidth
>=
398,
24 "width (" + w.innerWidth +
") should be around twice what was requested (200)");
25 ok(w.innerHeight <=
202 && w.innerHeight
>=
198,
26 "height (" + w.innerHeight +
") should be around twice what was requested (100)");
28 SpecialPowers.setFullZoom(window,
1);