2 <script src=
"../../resources/js-test.js"></script>
4 if (!window
.eventSender
) {
5 document
.write("This test does not work in manual mode.");
7 var initialResolution
= window
.devicePixelRatio
;
8 shouldBeTrue('matchMedia("(resolution: " + initialResolution + "dppx)").matches');
9 shouldBeTrue('matchMedia("(-webkit-device-pixel-ratio: " + initialResolution + ")").matches');
11 eventSender
.zoomPageIn();
13 shouldBeTrue('matchMedia("(resolution: " + initialResolution * 1.2 + "dppx)").matches');
14 shouldBeTrue('matchMedia("(-webkit-device-pixel-ratio: " + initialResolution * 1.2 + ")").matches');
16 eventSender
.zoomPageOut();
17 eventSender
.zoomPageOut();
19 shouldBeTrue('matchMedia("(resolution: " + initialResolution / 1.2 + "dppx)").matches');
20 shouldBeTrue('matchMedia("(-webkit-device-pixel-ratio: " + initialResolution / 1.2 + ")").matches');