widget/tests/window_bug593307_centerscreen.xul

branch
TOR_BUG_9701
changeset 10
ac0c01689b40
equal deleted inserted replaced
-1:000000000000 0:c44672d602d1
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">
7
8 <script type="application/javascript"
9 src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js" />
10
11 <body xmlns="http://www.w3.org/1999/xhtml" id="body">
12 </body>
13
14 <script class="testbody" type="application/javascript">
15 <![CDATA[
16
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>
26
27 </window>

mercurial