Bumping manifests a=b2g-bump
[gecko.git] / widget / tests / test_bug429954.xul
blob9b617ed4dae62d7efae184f9c96869e7fa5df12c
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 type="application/javascript"
12 src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" />
14 <body xmlns="http://www.w3.org/1999/xhtml">
15 <div id="content" style="display: none">
17 </div>
18 <pre id="test">
19 </pre>
20 </body>
22 <script class="testbody" type="application/javascript">
23 <![CDATA[
25 SimpleTest.waitForExplicitFinish();
27 SimpleTest.waitForFocus(function () {
28 var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"].
29 getService(Components.interfaces.nsIWindowMediator);
30 var win = wm.getMostRecentWindow("navigator:browser");
31 win.maximize();
32 var maxX = win.screenX, maxY = win.screenY;
33 var maxWidth = win.outerWidth, maxHeight = win.outerHeight;
34 win.restore();
36 window.open("window_bug429954.xul", "_blank",
37 "chrome,resizable,width=" + maxWidth + ",height=" + maxHeight +
38 "screenX=" + maxX + "screenY=" + maxY);
39 });
41 ]]>
42 </script>
44 </window>