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

Unified Diff: LayoutTests/http/tests/misc/client-hints-accept-meta.html

Issue 1183233002: Split RW hint into Width and Viewport-Width (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed and added layout tests Created 5 years, 6 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
Index: LayoutTests/http/tests/misc/client-hints-accept-meta.html
diff --git a/LayoutTests/http/tests/misc/client-hints-accept-meta.html b/LayoutTests/http/tests/misc/client-hints-accept-meta.html
index 1064b85dbba4da92c6dadfdd64e03af032e3c910..b710aeddb195833887a26636fa936d442f1e132a 100644
--- a/LayoutTests/http/tests/misc/client-hints-accept-meta.html
+++ b/LayoutTests/http/tests/misc/client-hints-accept-meta.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<meta http-equiv="Accept-CH" content="DPR, RW">
+<meta http-equiv="Accept-CH" content="DPR, Width, Viewport-Width">
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<body>
@@ -11,15 +11,22 @@
var loadRWImage = function() {
var img = new Image();
- img.src = 'resources/image-checks-for-rw.php';
+ img.src = 'resources/image-checks-for-width.php';
img.onload = t.step_func(function(){ t.done(); });
img.onerror = t.step_func(unreached);
document.body.appendChild(img);
};
+ var loadViewportImage = function() {
+ var img = new Image();
+ img.src = 'resources/image-checks-for-viewport-width.php';
+ img.onload = t.step_func(loadRWImage);
+ img.onerror = t.step_func(unreached);
+ document.body.appendChild(img);
+ };
t.step(function() {
var img = new Image();
img.src = 'resources/image-checks-for-dpr.php';
- img.onload = t.step_func(loadRWImage);
+ img.onload = t.step_func(loadViewportImage);
img.onerror = t.step_func(unreached);
document.body.appendChild(img);
});

Powered by Google App Engine
This is Rietveld 408576698