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

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: Review issue: renamed variable 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
« no previous file with comments | « no previous file | LayoutTests/fast/css/zoom-media-queries-resolution-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | LayoutTests/fast/css/zoom-media-queries-resolution-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698