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