| 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 </script> | 6 </script> |
| 7 <script src="../../../resources/js-test.js"></script> | 7 <script src="../../../resources/js-test.js"></script> |
| 8 <script src="../../forms/resources/picker-common.js"></script> | 8 <script src="../../forms/resources/picker-common.js"></script> |
| 9 <script src="resources/suggestion-picker-common.js"></script> | 9 <script src="resources/suggestion-picker-common.js"></script> |
| 10 </head> | 10 </head> |
| 11 <body style="background-color: #eeffff;"> | 11 <body style="zoom: 2; background-color: #eeffff;"> |
| 12 <p>Suggestion picker should respect zoom level.</p> |
| 12 <script src="resources/suggestion-picker-common.js"></script> | 13 <script src="resources/suggestion-picker-common.js"></script> |
| 13 <input type=date id=date value="10000-12-31" list="suggestions" style="width: 20
0px;"> | 14 <input type=date id=date value="2014-10-30" list="suggestions" style="width: 200
px;"> |
| 14 <datalist id=suggestions> | 15 <datalist id=suggestions> |
| 15 <option>2012-01-00</option> <!--invalid--> | 16 <option>2012-01-00</option> <!--invalid--> |
| 16 <option>foo</option> <!--invalid--> | 17 <option>foo</option> <!--invalid--> |
| 17 <option label="Today">2012-01-01</option> | 18 <option label="Today">2012-01-01</option> |
| 18 <option label="Tomorrow">2012-01-02</option> | 19 <option label="Tomorrow">2012-01-02</option> |
| 19 <option>2012-01-03</option> | 20 <option>2012-01-03</option> |
| 20 <option>2012-01-04</option> | 21 <option>2012-01-04</option> |
| 21 <option>2012-01-05</option> | 22 <option>2012-01-05</option> |
| 22 <option>2012-01-06</option> | 23 <option>2012-01-06</option> |
| 23 <option>2012-01-07</option> | |
| 24 <option>2012-01-08</option> | |
| 25 <option>2012-01-09</option> | |
| 26 <option>2012-01-10</option> | |
| 27 <option>2012-01-11</option> | |
| 28 <option>2012-01-12</option> | |
| 29 <option>2012-01-13</option> | |
| 30 <option>2012-01-14</option> | |
| 31 <option>2012-01-15</option> | |
| 32 <option>2012-01-16</option> | |
| 33 <option>2012-01-17</option> | |
| 34 <option>2012-01-18</option> | |
| 35 <option>2012-01-19</option> | |
| 36 </datalist> | 24 </datalist> |
| 37 | 25 |
| 38 <p id="description" style="opacity: 0"></p> | 26 <p id="description" style="opacity: 0"></p> |
| 39 <div id="console" style="opacity: 0"></div> | 27 <div id="console" style="opacity: 0"></div> |
| 40 | 28 |
| 41 <script> | 29 <script> |
| 42 openPicker(document.getElementById('date'), finishTest); | 30 openPicker(document.getElementById('date'), finishTest); |
| 43 | 31 |
| 44 function finishTest() { | 32 function finishTest() { |
| 45 popupWindow.focus(); | 33 popupWindow.focus(); |
| 46 eventSender.keyDown('downArrow'); | 34 eventSender.keyDown('downArrow'); |
| 47 finishJSTest(); | 35 finishJSTest(); |
| 48 } | 36 } |
| 49 </script> | 37 </script> |
| 50 </body> | 38 </body> |
| 51 </html> | 39 </html> |
| OLD | NEW |