| Index: third_party/WebKit/LayoutTests/fast/hidpi/data-suggestion-picker-appearance-dsf2-with-zoom.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/forms/suggestion-picker/date-suggestion-picker-appearance.html b/third_party/WebKit/LayoutTests/fast/hidpi/data-suggestion-picker-appearance-dsf2-with-zoom.html
|
| similarity index 54%
|
| copy from third_party/WebKit/LayoutTests/fast/forms/suggestion-picker/date-suggestion-picker-appearance.html
|
| copy to third_party/WebKit/LayoutTests/fast/hidpi/data-suggestion-picker-appearance-dsf2-with-zoom.html
|
| index c0a96fe655e2a83dde09c1fc484366c7806718fd..6b53394f92b142eae47e762b5ed53a8bd4444efb 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/forms/suggestion-picker/date-suggestion-picker-appearance.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/hidpi/data-suggestion-picker-appearance-dsf2-with-zoom.html
|
| @@ -2,14 +2,34 @@
|
| <html>
|
| <head>
|
| <script>
|
| -window.enablePixelTesting = true;
|
| + window.enablePixelTesting = true;
|
| + function startTest() {
|
| + if (window.testRunner) {
|
| + testRunner.enableUseZoomForDSF(function() {
|
| + testRunner.setBackingScaleFactor(2.0, function() {});
|
| + });
|
| + }
|
| + }
|
| + window.matchMedia('screen and (min-resolution: 2dppx)').
|
| + addListener(function(e) {
|
| + if (e.matches) {
|
| + doOpenPopup();
|
| + }
|
| + });
|
| + function doOpenPopup() {
|
| + openPicker(document.getElementById('date'),
|
| + finishJSTest,
|
| + function () {
|
| + testFailed('picker didn\'t open')
|
| + finishJSTest();
|
| + });
|
| + }
|
| </script>
|
| -<script src="../../../resources/js-test.js"></script>
|
| -<script src="../../forms/resources/picker-common.js"></script>
|
| -<script src="resources/suggestion-picker-common.js"></script>
|
| +<script src="../../resources/js-test.js"></script>
|
| +<script src="../forms/resources/picker-common.js"></script>
|
| +<script src="../forms/resources/suggestion-picker-common.js"></script>
|
| </head>
|
| -<body style="background-color: #eeffff;">
|
| -<script src="resources/suggestion-picker-common.js"></script>
|
| +<body onLoad="startTest()" style="background-color: #eeffff;">
|
| <input type=date id=date value="10000-12-31" list="suggestions" style="width: 200px;">
|
| <datalist id=suggestions>
|
| <option>2012-01-00</option> <!--invalid-->
|
| @@ -34,18 +54,7 @@ window.enablePixelTesting = true;
|
| <option>2012-01-18</option>
|
| <option>2012-01-19</option>
|
| </datalist>
|
| -
|
| <p id="description" style="opacity: 0"></p>
|
| <div id="console" style="opacity: 0"></div>
|
| -
|
| -<script>
|
| -openPicker(document.getElementById('date'), finishTest);
|
| -
|
| -function finishTest() {
|
| - popupWindow.focus();
|
| - eventSender.keyDown('downArrow');
|
| - finishJSTest();
|
| -}
|
| -</script>
|
| </body>
|
| </html>
|
|
|