CLOSED TREE: TraceMonkey merge head. (a=blockers)
[mozilla-central.git] / docshell / test / test_bug344861.html
blobe6eead404c68bfaf5bae56d2957a4a174cc6f74b
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=344861
5 -->
6 <head>
7 <title>Test for Bug 344861</title>
8 <script type="text/javascript" src="/MochiKit/packed.js"></script>
9 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
11 </head>
12 <body>
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=344861">Mozilla Bug 344861</a>
14 <p id="display"></p>
15 <div id="content" style="display: none">
17 </div>
18 <pre id="test">
19 <script class="testbody" type="text/javascript">
21 /** Test for Bug 344861 **/
22 SimpleTest.waitForExplicitFinish();
24 var newwindow = window.open("/", "testwindow", "width=200,height=200");
25 newwindow.onload = function() {
26 is(newwindow.innerHeight, 200, "window.open has correct height dimensions");
27 is(newwindow.innerWidth, 200, "window.open has correct width dimensions");
28 SimpleTest.finish();
29 newwindow.close();
31 </script>
32 </pre>
33 </body>
34 </html>