summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/dom-level0/test_innerWidthHeight_script.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/tests/mochitest/dom-level0/test_innerWidthHeight_script.html')
-rw-r--r--dom/tests/mochitest/dom-level0/test_innerWidthHeight_script.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/dom/tests/mochitest/dom-level0/test_innerWidthHeight_script.html b/dom/tests/mochitest/dom-level0/test_innerWidthHeight_script.html
new file mode 100644
index 000000000..55b38b527
--- /dev/null
+++ b/dom/tests/mochitest/dom-level0/test_innerWidthHeight_script.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Bug 602580 - Test getting and setting innerWidth and Height after using setCSSViewport</title>
+ <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
+ <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
+ <!--
+ This acts funny when run in the normal content frame
+ so instead We load it in a separate window.
+ -->
+</head>
+<body onload="startTest()">
+ <script class="testbody" type="text/javascript">
+ SimpleTest.waitForExplicitFinish();
+ var newWin = null;
+ function runTest() {
+ newWin = window.open("innerWidthHeight_script.html", '_new', 'width=600,height=400');
+ }
+
+ function finish() {
+ newWin.close();
+ SimpleTest.finish();
+ }
+
+ function startTest() {
+ SpecialPowers.pushPrefEnv({"set": [["dom.disable_window_move_resize", false],
+ ["dom.meta-viewport.enabled", true ]]}, runTest);
+ }
+ </script>
+</body>
+</html>