Bug 1882714 [wpt PR 44850] - Update wpt metadata, a=testonly
[gecko.git] / widget / tests / test_bug429954.xhtml
blob40de88cd3266fa8bc1af180884815f1835544353
1 <?xml version="1.0"?>
2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
3 <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css"
4 type="text/css"?>
5 <!--
6 https://bugzilla.mozilla.org/show_bug.cgi?id=429954
7 -->
8 <window title="Mozilla Bug 429954"
9 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
11 <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" />
13 <body xmlns="http://www.w3.org/1999/xhtml">
14 <div id="content" style="display: none">
16 </div>
17 <pre id="test">
18 </pre>
19 </body>
21 <script class="testbody" type="application/javascript">
22 <![CDATA[
24 SimpleTest.waitForExplicitFinish();
26 SimpleTest.waitForFocus(function () {
27 var win = Services.wm.getMostRecentWindow("navigator:browser");
28 win.maximize();
29 var maxX = win.screenX, maxY = win.screenY;
30 var maxWidth = win.outerWidth, maxHeight = win.outerHeight;
31 win.restore();
33 window.openDialog("window_bug429954.xhtml", "_blank",
34 "chrome,noopener,resizable,width=" + maxWidth + ",height=" + maxHeight +
35 ",screenX=" + maxX + "screenY=" + maxY,
36 window);
37 });
39 ]]>
40 </script>
42 </window>