| Index: LayoutTests/fast/css/zoom-media-queries-resolution.html
|
| diff --git a/LayoutTests/fast/css/zoom-media-queries-resolution.html b/LayoutTests/fast/css/zoom-media-queries-resolution.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..850382e75e2b5b192d4ee7ea927dcc974e678654
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/css/zoom-media-queries-resolution.html
|
| @@ -0,0 +1,22 @@
|
| +<!DOCTYPE html>
|
| +<script src="../js/resources/js-test-pre.js"></script>
|
| +<script>
|
| + if (!window.eventSender) {
|
| + document.write("This test does not work in manual mode.");
|
| + } else {
|
| + var initialResolution = window.devicePixelRatio;
|
| + shouldBeTrue('matchMedia("(resolution: " + initialResolution + "dppx)").matches');
|
| + shouldBeTrue('matchMedia("(-webkit-device-pixel-ratio: " + initialResolution + ")").matches');
|
| +
|
| + eventSender.zoomPageIn();
|
| +
|
| + shouldBeTrue('matchMedia("(resolution: " + initialResolution * 1.2 + "dppx)").matches');
|
| + shouldBeTrue('matchMedia("(-webkit-device-pixel-ratio: " + initialResolution * 1.2 + ")").matches');
|
| +
|
| + eventSender.zoomPageOut();
|
| + eventSender.zoomPageOut();
|
| +
|
| + shouldBeTrue('matchMedia("(resolution: " + initialResolution / 1.2 + "dppx)").matches');
|
| + shouldBeTrue('matchMedia("(-webkit-device-pixel-ratio: " + initialResolution / 1.2 + ")").matches');
|
| + }
|
| +</script>
|
|
|