widget/tests/window_bug429954.xul

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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 type="application/javascript"
     8           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 ok(aCondition, aMessage)
    17 {
    18   window.opener.wrappedJSObject.SimpleTest.ok(aCondition, aMessage);
    19 }
    21 function is(aLeft, aRight, aMessage)
    22 {
    23   window.opener.wrappedJSObject.SimpleTest.is(aLeft, aRight, aMessage);
    24 }
    26 function isnot(aLeft, aRight, aMessage)
    27 {
    28   window.opener.wrappedJSObject.SimpleTest.isnot(aLeft, aRight, aMessage);
    29 }
    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 }
    42 ]]>
    43 </script>
    45 </window>

mercurial