Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / zoom-media-queries-resolution.html
bloba6009361f5f06332cbab954a271f8632bfdbf3bd
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <script>
4 if (!window.eventSender) {
5 document.write("This test does not work in manual mode.");
6 } else {
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');
22 </script>