Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(685)

Side by Side Diff: LayoutTests/fast/css/zoom-media-queries-resolution.html

Issue 23192002: Let page zoom affect resolution and -webkit-device-pixel-ratio MQs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../js/resources/js-test-pre.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: " + initialResolu tion + ")").matches');
10
11 eventSender.zoomPageIn();
12
13 shouldBeTrue('matchMedia("(resolution: " + initialResolution * 1.2 + "dp px)").matches');
14 shouldBeTrue('matchMedia("(-webkit-device-pixel-ratio: " + initialResolu tion * 1.2 + ")").matches');
15
16 eventSender.zoomPageOut();
17 eventSender.zoomPageOut();
18
19 shouldBeTrue('matchMedia("(resolution: " + initialResolution / 1.2 + "dp px)").matches');
20 shouldBeTrue('matchMedia("(-webkit-device-pixel-ratio: " + initialResolu tion / 1.2 + ")").matches');
21 }
22 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698