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

Unified Diff: LayoutTests/fast/hidpi/dpr-setting.html

Issue 23861003: Enable srcset support in HTMLImageElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed a flaky test Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/hidpi/dpr-setting-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/hidpi/dpr-setting.html
diff --git a/LayoutTests/fast/hidpi/dpr-setting.html b/LayoutTests/fast/hidpi/dpr-setting.html
new file mode 100644
index 0000000000000000000000000000000000000000..9847c97c53b85c171499cb4c64c368de79639fc9
--- /dev/null
+++ b/LayoutTests/fast/hidpi/dpr-setting.html
@@ -0,0 +1,22 @@
+<html>
+<head>
+<script>
+ window.targetScaleFactor = 2;
+</script>
+<script src="resources/srcset-helper.js"></script>
+<script src="../js/resources/js-test-pre.js"></script>
+<script>
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ }
+
+ addEventListener("load", function() {
+ shouldBeTrue('matchMedia("screen and (min-resolution: 2dppx)").matches');
+ }, false);
+</script>
+</head>
+
+<body id="body">
+ <div>This test passes if the DPR is set to 2x</div>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/hidpi/dpr-setting-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698