|
1 <!DOCTYPE HTML> |
|
2 <html> |
|
3 <!-- |
|
4 https://bugzilla.mozilla.org/show_bug.cgi?id=869314 |
|
5 --> |
|
6 <head> |
|
7 <meta charset="utf-8"> |
|
8 <title>Test for Bug 869314</title> |
|
9 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
|
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
|
11 |
|
12 <style type="text/css"> |
|
13 .selectbox { |
|
14 background-color: #00FF00; |
|
15 } |
|
16 </style> |
|
17 |
|
18 </head> |
|
19 <body> |
|
20 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=869314">Mozilla Bug 869314</a> |
|
21 <p id="display"></p> |
|
22 <div id="content"> |
|
23 |
|
24 <select id="selectbox1" name="non-native selectbox" class="selectbox"> |
|
25 <option value="item">test item</option> |
|
26 </select> |
|
27 |
|
28 <select id="selectbox2" name="native selectbox"> |
|
29 <option value="item">test item</option> |
|
30 </select> |
|
31 |
|
32 <script type="application/javascript"> |
|
33 var Cc = SpecialPowers.Cc; |
|
34 var Ci = SpecialPowers.Ci; |
|
35 var sysInfo = Cc["@mozilla.org/system-info;1"].getService(Ci.nsIPropertyBag2); |
|
36 var osName = sysInfo.getProperty("name"); |
|
37 if (osName == "Darwin") { // Mac OS X. |
|
38 // This test is for Mac only. See bug for more info. |
|
39 ok(document.getElementById("selectbox1").clientWidth > |
|
40 document.getElementById("selectbox2").clientWidth, |
|
41 "Non-native styled combobox does not have enough space for a " + |
|
42 "dropmarker!"); |
|
43 } else { |
|
44 // We need to call at least one test function to make the test harness |
|
45 // happy. |
|
46 ok(true, "Test wasn't ignored but should have been."); |
|
47 } |
|
48 </script> |
|
49 |
|
50 </div> |
|
51 <pre id="test"> |
|
52 </pre> |
|
53 </body> |
|
54 </html> |