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