|
1 <?xml version="1.0"?> |
|
2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?> |
|
3 <window title="Mozilla Bug 478536" |
|
4 onload="start();" |
|
5 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
|
6 |
|
7 <script type="application/javascript" |
|
8 src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js" /> |
|
9 |
|
10 <body xmlns="http://www.w3.org/1999/xhtml" id="body"> |
|
11 </body> |
|
12 |
|
13 <script class="testbody" type="application/javascript"> |
|
14 <![CDATA[ |
|
15 |
|
16 function ok(aCondition, aMessage) |
|
17 { |
|
18 window.opener.wrappedJSObject.SimpleTest.ok(aCondition, aMessage); |
|
19 } |
|
20 |
|
21 function is(aLeft, aRight, aMessage) |
|
22 { |
|
23 window.opener.wrappedJSObject.SimpleTest.is(aLeft, aRight, aMessage); |
|
24 } |
|
25 |
|
26 function isnot(aLeft, aRight, aMessage) |
|
27 { |
|
28 window.opener.wrappedJSObject.SimpleTest.isnot(aLeft, aRight, aMessage); |
|
29 } |
|
30 |
|
31 function start() { |
|
32 var oldWidth = window.outerWidth, oldHeight = window.outerHeight; |
|
33 window.maximize(); |
|
34 window.restore(); |
|
35 is(window.outerWidth, oldWidth, "wrong window width after maximize+restore"); |
|
36 is(window.outerHeight, oldHeight, "wrong window height after maximize+restore"); |
|
37 window.opener.wrappedJSObject.SimpleTest.finish(); |
|
38 window.close(); |
|
39 } |
|
40 |
|
41 |
|
42 ]]> |
|
43 </script> |
|
44 |
|
45 </window> |