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 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <!-- |
michael@0 | 4 | https://bugzilla.mozilla.org/show_bug.cgi?id=841361 |
michael@0 | 5 | --> |
michael@0 | 6 | <head> |
michael@0 | 7 | <title>Test for Bug 841361</title> |
michael@0 | 8 | <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 9 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> |
michael@0 | 10 | </head> |
michael@0 | 11 | <body> |
michael@0 | 12 | <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=841361">Mozilla Bug 841361</a> |
michael@0 | 13 | <p id="display"> |
michael@0 | 14 | |
michael@0 | 15 | <div style="width:500px; height:0;" id="a"></div> |
michael@0 | 16 | |
michael@0 | 17 | <div style="width:0; height:500px;" id="b"></div> |
michael@0 | 18 | |
michael@0 | 19 | <div style="width:500px;" id="c"> |
michael@0 | 20 | <div style="width:50px; height:50px; float:left; background:yellow"></div> |
michael@0 | 21 | <div style="width:200px; height:50px; float:left; background:green"></div> |
michael@0 | 22 | </div> |
michael@0 | 23 | |
michael@0 | 24 | <div style="width:500px; height:0; overflow:hidden" id="d"></div> |
michael@0 | 25 | |
michael@0 | 26 | <div style="width:0; height:500px; overflow:hidden" id="e"></div> |
michael@0 | 27 | |
michael@0 | 28 | <div style="width:500px; overflow:hidden" id="f"> |
michael@0 | 29 | <div style="width:50px; height:50px; float:left; background:yellow"></div> |
michael@0 | 30 | <div style="width:200px; height:50px; float:left; background:green"></div> |
michael@0 | 31 | </div> |
michael@0 | 32 | |
michael@0 | 33 | </p> |
michael@0 | 34 | <div id="content" style="display: none"> |
michael@0 | 35 | |
michael@0 | 36 | </div> |
michael@0 | 37 | <pre id="test"> |
michael@0 | 38 | <script class="testbody" type="text/javascript"> |
michael@0 | 39 | |
michael@0 | 40 | function doTest(id, w, h) { |
michael@0 | 41 | var e = document.getElementById(id); |
michael@0 | 42 | is(e.scrollWidth, w, "scrollWidth for element '" + id + "'"); |
michael@0 | 43 | is(e.scrollHeight, h, "scrollHeight for element '" + id + "'"); |
michael@0 | 44 | } |
michael@0 | 45 | |
michael@0 | 46 | doTest("a", 500, 0); |
michael@0 | 47 | doTest("b", 0, 500); |
michael@0 | 48 | doTest("c", 500, 50); |
michael@0 | 49 | doTest("d", 500, 0); |
michael@0 | 50 | doTest("e", 0, 500); |
michael@0 | 51 | doTest("f", 500, 50); |
michael@0 | 52 | |
michael@0 | 53 | </script> |
michael@0 | 54 | </pre> |
michael@0 | 55 | </body> |
michael@0 | 56 | </html> |