OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script> | 4 <script> |
5 window.enablePixelTesting = true; | 5 window.enablePixelTesting = true; |
6 function startTest() { | 6 function startTest() { |
7 if (window.testRunner) { | |
8 testRunner.enableUseZoomForDSF(function() { | |
9 testRunner.setBackingScaleFactor(2.0, function() {}); | |
10 }); | |
11 } | |
12 } | |
13 window.matchMedia('screen and (min-resolution: 2dppx)'). | |
14 addListener(function(e) { | |
15 if (e.matches) { | |
16 openMenu(); | |
17 } | |
18 }); | |
19 function openMenu() { | |
20 openPicker(document.getElementById('menu'), finishJSTest, function () { | 7 openPicker(document.getElementById('menu'), finishJSTest, function () { |
21 testFailed('picker didn\'t open') | 8 testFailed('picker didn\'t open') |
22 finishJSTest(); | 9 finishJSTest(); |
23 }); | 10 }); |
24 } | 11 } |
25 </script> | 12 </script> |
26 <script src="../../resources/js-test.js"></script> | 13 <script src="../../../resources/js-test.js"></script> |
27 <script src="../forms/resources/picker-common.js"></script> | 14 <script src="../../forms/resources/picker-common.js"></script> |
28 </head> | 15 </head> |
29 <body onLoad="startTest()"> | 16 <body onLoad="startTest()"> |
30 <p>The font size in the popup should be same as the font size of the SELECT elem
ent except the third OPTION.</p> | 17 <p>The font size in the popup should be same as the font size of the SELECT elem
ent except the third OPTION.</p> |
31 <select id="menu"> | 18 <select id="menu"> |
32 <option>foo</option> | 19 <option>foo</option> |
33 <option selected>bar</option> | 20 <option selected>bar</option> |
34 <option hidden>qux</option> | 21 <option hidden>qux</option> |
35 <option>baz</option> | 22 <option>baz</option> |
36 <optgroup label="Group"> | 23 <optgroup label="Group"> |
37 <option>foo</option> | 24 <option>foo</option> |
38 <option>bar</option> | 25 <option>bar</option> |
39 </optgroup> | 26 </optgroup> |
40 </select> | 27 </select> |
41 <p id="description" style="opacity: 0"></p> | 28 <p id="description" style="opacity: 0"></p> |
42 <div id="console" style="opacity: 0"></div> | 29 <div id="console" style="opacity: 0"></div> |
43 </body> | 30 </body> |
44 </html> | 31 </html> |
OLD | NEW |