1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/tests/mochitest/dom-level0/test_innerWidthHeight_script.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 +<head> 1.7 + <title>Bug 602580 - Test getting and setting innerWidth and Height after using setCSSViewport</title> 1.8 + <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.9 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 1.10 + <!-- 1.11 + This acts funny when run in the normal content frame 1.12 + so instead We load it in a separate window. 1.13 + --> 1.14 +</head> 1.15 +<body onload="startTest()"> 1.16 + <script class="testbody" type="text/javascript"> 1.17 + SimpleTest.waitForExplicitFinish(); 1.18 + var newWin = null; 1.19 + function runTest() { 1.20 + newWin = window.open("innerWidthHeight_script.html", '_new', 'width=600,height=400'); 1.21 + } 1.22 + 1.23 + function finish() { 1.24 + newWin.close(); 1.25 + SimpleTest.finish(); 1.26 + } 1.27 + 1.28 + function startTest() { 1.29 + SpecialPowers.pushPrefEnv({"set": [["dom.disable_window_move_resize", false]]}, runTest); 1.30 + } 1.31 + </script> 1.32 +</body> 1.33 +</html>