Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 <?xml version="1.0"?>
2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
3 <window title="Mozilla Bug 593307"
4 width="100" height="100"
5 onload="onload();"
6 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
8 <script type="application/javascript"
9 src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js" />
11 <body xmlns="http://www.w3.org/1999/xhtml" id="body">
12 </body>
14 <script class="testbody" type="application/javascript">
15 <![CDATA[
17 function onload()
18 {
19 var SimpleTest = window.opener.SimpleTest;
20 SimpleTest.ok(window.screenX >= 0, "centerscreen window should not start offscreen (X coordinate)");
21 SimpleTest.ok(window.screenY >= 0, "centerscreen window should not start offscreen (Y coordinate)");
22 window.opener.finished();
23 }
24 ]]>
25 </script>
27 </window>