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.
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"/>
12 <style type="text/css">
13 .selectbox {
14 background-color: #00FF00;
15 }
16 </style>
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">
24 <select id="selectbox1" name="non-native selectbox" class="selectbox">
25 <option value="item">test item</option>
26 </select>
28 <select id="selectbox2" name="native selectbox">
29 <option value="item">test item</option>
30 </select>
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>
50 </div>
51 <pre id="test">
52 </pre>
53 </body>
54 </html>