| Index: third_party/WebKit/LayoutTests/fast/hidpi/calendar-picker-appearance-dsf2-with-zoom.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/hidpi/calendar-picker-appearance-dsf2-with-zoom.html b/third_party/WebKit/LayoutTests/fast/hidpi/calendar-picker-appearance-dsf2-with-zoom.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..04f5a8f0efa36776a918d844a9282ac5c6ea0abf
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/hidpi/calendar-picker-appearance-dsf2-with-zoom.html
|
| @@ -0,0 +1,37 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<script>
|
| + 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="../forms/calendar-picker/resources/calendar-picker-common.js"></script>
|
| +</head>
|
| +<body onLoad="startTest()">
|
| +<input type=date id=date value="10000-12-31"> </input>
|
| +<p id="description" style="opacity: 0"></p>
|
| +<div id="console" style="opacity: 0"></div>
|
| +</body>
|
| +</html>
|
|
|