| 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.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 doOpenPopup(); | |
| 17 } | |
| 18 }); | |
| 19 function doOpenPopup() { | |
| 20 openPicker(document.getElementById('date'), | |
| 21 finishJSTest, | |
| 22 function () { | |
| 23 testFailed('picker didn\'t open') | |
| 24 finishJSTest(); | |
| 25 }); | |
| 26 } | |
| 27 </script> | |
| 28 <script src="../../resources/js-test.js"></script> | |
| 29 <script src="../forms/resources/picker-common.js"></script> | |
| 30 <script src="../forms/calendar-picker/resources/calendar-picker-common.js"></scr
ipt> | |
| 31 </head> | |
| 32 <body onLoad="startTest()"> | |
| 33 <input type=date id=date value="10000-12-31"> </input> | |
| 34 <p id="description" style="opacity: 0"></p> | |
| 35 <div id="console" style="opacity: 0"></div> | |
| 36 </body> | |
| 37 </html> | |
| OLD | NEW |