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.setBackingScaleFactor(2.0, function() {}); | |
9 } | |
10 } | |
11 window.matchMedia('screen and (min-resolution: 2dppx)'). | |
12 addListener(function(e) { | |
13 if (e.matches) { | |
14 doOpenPopup(); | |
15 } | |
16 }); | |
17 function doOpenPopup() { | |
18 openPicker(document.getElementById('date'), | 7 openPicker(document.getElementById('date'), |
19 finishJSTest, | 8 finishJSTest, |
20 function () { | 9 function () { |
21 testFailed('picker didn\'t open') | 10 testFailed('picker didn\'t open') |
22 finishJSTest(); | 11 finishJSTest(); |
23 }); | 12 }); |
24 } | 13 } |
25 </script> | 14 </script> |
26 <script src="../../resources/js-test.js"></script> | 15 <script src="../../../resources/js-test.js"></script> |
27 <script src="../forms/resources/picker-common.js"></script> | 16 <script src="../../forms/resources/picker-common.js"></script> |
28 <script src="../forms/calendar-picker/resources/calendar-picker-common.js"></scr
ipt> | 17 <script src="../../forms/calendar-picker/resources/calendar-picker-common.js"></
script> |
29 </head> | 18 </head> |
30 <body onLoad="startTest()"> | 19 <body onLoad="startTest()"> |
31 <input type=date id=date value="10000-12-31"> </input> | 20 <input type=date id=date value="10000-12-31"> </input> |
32 <p id="description" style="opacity: 0"></p> | 21 <p id="description" style="opacity: 0"></p> |
33 <div id="console" style="opacity: 0"></div> | 22 <div id="console" style="opacity: 0"></div> |
34 </body> | 23 </body> |
35 </html> | 24 </html> |
OLD | NEW |