dom/tests/mochitest/dom-level0/test_innerWidthHeight_script.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

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

mercurial