1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/base/test/test_bug320799.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,69 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<!-- 1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=320799 1.8 +--> 1.9 +<head> 1.10 + <title>Test for Bug 320799</title> 1.11 + <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.12 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 1.13 +</head> 1.14 +<body> 1.15 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=320799">Mozilla Bug 320799</a> 1.16 +<p id="display"> 1.17 + <select id="s" style="width: 100px; box-sizing: padding-box"> 1.18 + <option>This is a test, it really is a test I tell you</option> 1.19 + </select> 1.20 + <select id="s2"> 1.21 + <option>x</option> 1.22 + <option>x</option> 1.23 + <option>x</option> 1.24 + <option>x</option> 1.25 + <option>x</option> 1.26 + <option>x</option> 1.27 + <option>x</option> 1.28 + <option>x</option> 1.29 + <option>x</option> 1.30 + <option>x</option> 1.31 + <option>x</option> 1.32 + <option>x</option> 1.33 + <option>x</option> 1.34 + <option>x</option> 1.35 + <option>x</option> 1.36 + <option>x</option> 1.37 + <option>x</option> 1.38 + <option>x</option> 1.39 + <option>x</option> 1.40 + <option>x</option> 1.41 + <option>x</option> 1.42 + <option>x</option> 1.43 + <option>x</option> 1.44 + <option>x</option> 1.45 + <option>x</option> 1.46 + <option>x</option> 1.47 + <option>x</option> 1.48 + <option>x</option> 1.49 + <option>x</option> 1.50 + <option>x</option> 1.51 + <option>x</option> 1.52 + <option>x</option> 1.53 + <option>x</option> 1.54 + </select> 1.55 + <select id="s3"> 1.56 + <option>x</option> 1.57 + </select> 1.58 +</p> 1.59 +<div id="content" style="display: none"> 1.60 + 1.61 +</div> 1.62 +<pre id="test"> 1.63 +<script type="application/javascript"> 1.64 + 1.65 +/** Test for Bug 320799 **/ 1.66 +is($("s").scrollWidth, 100, "Scroll width should not include dropdown contents"); 1.67 +is($("s2").clientWidth, $("s3").clientWidth, 1.68 + "Client width should not depend on the dropdown's vertical scrollbar"); 1.69 +</script> 1.70 +</pre> 1.71 +</body> 1.72 +</html>