|
1 <!DOCTYPE html> |
|
2 <html> |
|
3 <head> |
|
4 <title>Bug 602580 - Test getting and setting innerWidth and Height after using setCSSViewport</title> |
|
5 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
|
6 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> |
|
7 <!-- |
|
8 This acts funny when run in the normal content frame |
|
9 so instead We load it in a separate window. |
|
10 --> |
|
11 </head> |
|
12 <body onload="startTest()"> |
|
13 <script class="testbody" type="text/javascript"> |
|
14 SimpleTest.waitForExplicitFinish(); |
|
15 var newWin = null; |
|
16 function runTest() { |
|
17 newWin = window.open("innerWidthHeight_script.html", '_new', 'width=600,height=400'); |
|
18 } |
|
19 |
|
20 function finish() { |
|
21 newWin.close(); |
|
22 SimpleTest.finish(); |
|
23 } |
|
24 |
|
25 function startTest() { |
|
26 SpecialPowers.pushPrefEnv({"set": [["dom.disable_window_move_resize", false]]}, runTest); |
|
27 } |
|
28 </script> |
|
29 </body> |
|
30 </html> |