Merge mozilla-central to autoland. CLOSED TREE
[gecko.git] / widget / tests / window_bug593307_centerscreen.xhtml
blobdd73e42f84a58e5f0a18a32fce11ff85a1de3954
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 src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js" />
10 <body xmlns="http://www.w3.org/1999/xhtml" id="body">
11 </body>
13 <script class="testbody" type="application/javascript">
14 <![CDATA[
16 function onload()
18 var SimpleTest = window.opener.SimpleTest;
19 SimpleTest.ok(window.screenX >= 0, "centerscreen window should not start offscreen (X coordinate): " + window.screenX);
20 SimpleTest.ok(window.screenY >= 0, "centerscreen window should not start offscreen (Y coordinate): " + window.screenY);
21 window.opener.finished();
23 ]]>
24 </script>
26 </window>