Merge mozilla-central to autoland on a CLOSED TREE
[gecko.git] / widget / tests / window_bug429954.xhtml
blobca26d52621fe3f7d65731146f9858a13b30849cd
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">
7 <script src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js" />
9 <body xmlns="http://www.w3.org/1999/xhtml" id="body">
10 </body>
12 <script class="testbody" type="application/javascript">
13 <![CDATA[
15 function ok(aCondition, aMessage)
17 window.browsingContext.topChromeWindow.opener.wrappedJSObject.SimpleTest.ok(aCondition, aMessage);
20 function is(aLeft, aRight, aMessage)
22 window.arguments[0].SimpleTest.is(aLeft, aRight, aMessage);
25 function isnot(aLeft, aRight, aMessage)
27 window.arguments[0].SimpleTest.isnot(aLeft, aRight, aMessage);
30 function start() {
31 var oldWidth = window.outerWidth, oldHeight = window.outerHeight;
32 window.maximize();
33 window.restore();
34 is(window.outerWidth, oldWidth, "wrong window width after maximize+restore");
35 is(window.outerHeight, oldHeight, "wrong window height after maximize+restore");
36 window.arguments[0].SimpleTest.finish();
37 window.close();
41 ]]>
42 </script>
44 </window>