widget/tests/test_bug429954.xul

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:f8a82cedac98
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">
10
11 <script type="application/javascript"
12 src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" />
13
14 <body xmlns="http://www.w3.org/1999/xhtml">
15 <div id="content" style="display: none">
16
17 </div>
18 <pre id="test">
19 </pre>
20 </body>
21
22 <script class="testbody" type="application/javascript">
23 <![CDATA[
24
25 SimpleTest.waitForExplicitFinish();
26
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();
35
36 window.open("window_bug429954.xul", "_blank",
37 "chrome,resizable,width=" + maxWidth + ",height=" + maxHeight +
38 "screenX=" + maxX + "screenY=" + maxY);
39 });
40
41 ]]>
42 </script>
43
44 </window>

mercurial