Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | <?xml version="1.0"?> |
michael@0 | 2 | <?xml-stylesheet href="chrome://global/skin" type="text/css"?> |
michael@0 | 3 | <?xml-stylesheet href="/tests/SimpleTest/test.css" type="text/css"?> |
michael@0 | 4 | |
michael@0 | 5 | <window title="Bug 465448" |
michael@0 | 6 | onload="loaded()" |
michael@0 | 7 | xmlns:html="http://www.w3.org/1999/xhtml" |
michael@0 | 8 | xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
michael@0 | 9 | |
michael@0 | 10 | <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 11 | <script type="application/javascript" src="/tests/SimpleTest/EventUtils.js"></script> |
michael@0 | 12 | |
michael@0 | 13 | <script><![CDATA[ |
michael@0 | 14 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 15 | var loadedCalled = false; |
michael@0 | 16 | var win = window.open("data:text/html,<body onload='window.opener.loaded()'><div style='height:200px; width:100px;'>", "_blank", "width=600,height=600"); |
michael@0 | 17 | |
michael@0 | 18 | function loaded() { |
michael@0 | 19 | if (!loadedCalled) { |
michael@0 | 20 | loadedCalled = true; |
michael@0 | 21 | return; |
michael@0 | 22 | } |
michael@0 | 23 | win.sizeToContent(); |
michael@0 | 24 | win.sizeToContent(); |
michael@0 | 25 | win.sizeToContent(); |
michael@0 | 26 | win.sizeToContent(); |
michael@0 | 27 | win.sizeToContent(); |
michael@0 | 28 | win.sizeToContent(); |
michael@0 | 29 | ok(win.innerWidth >= 100, "innerWidth"); |
michael@0 | 30 | ok(win.innerHeight >= 200, "innerHeight"); |
michael@0 | 31 | win.close(); |
michael@0 | 32 | SimpleTest.finish(); |
michael@0 | 33 | } |
michael@0 | 34 | ]]></script> |
michael@0 | 35 | |
michael@0 | 36 | <body xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 37 | <p id="display"> |
michael@0 | 38 | </p> |
michael@0 | 39 | <div id="content" style="display: none"> |
michael@0 | 40 | </div> |
michael@0 | 41 | <pre id="test"> |
michael@0 | 42 | </pre> |
michael@0 | 43 | </body> |
michael@0 | 44 | |
michael@0 | 45 | </window> |