| 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>
|
|
|