1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/generic/test/test_bug831780.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,32 @@ 1.4 +<!-- Important: needs to be in quirks mode for the test to be meaningful --> 1.5 +<html> 1.6 +<!-- 1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=831780 1.8 +--> 1.9 +<head> 1.10 + <meta charset="utf-8"> 1.11 + <title>Test for Bug 831780</title> 1.12 + <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.13 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 1.14 +</head> 1.15 +<body> 1.16 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=831780">Mozilla Bug 831780</a> 1.17 +<p id="display" style="width: 1px; height: 1px; overflow: hidden"> 1.18 + <!-- No src so it'll be a broken image, but that only happens in quirks 1.19 + mode. In standards mode the test would end up timing-dependent --> 1.20 + <img style="width: 1px; height: 1px"> 1.21 +</p> 1.22 +<div id="content" style="display: none"> 1.23 + 1.24 +</div> 1.25 +<pre id="test"> 1.26 +</pre> 1.27 + <script type="application/javascript"> 1.28 + 1.29 + /** Test for Bug 831780 **/ 1.30 + is($("display").scrollWidth, 1, "scrollWidth should be 1"); 1.31 + is($("display").scrollHeight, 1, "scrollHeight should be 1"); 1.32 + 1.33 + </script> 1.34 +</body> 1.35 +</html>