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

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

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
« no previous file with comments | « no previous file | LayoutTests/http/tests/misc/client-hints-accept-meta.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/misc/client-hints-accept.php
diff --git a/LayoutTests/http/tests/misc/client-hints-accept.php b/LayoutTests/http/tests/misc/client-hints-accept.php
index 97ce2dc08d9fa3b577e270d963359b89005ecae8..df31db30f6db1b2393124f72e3bb07ffb7f25218 100644
--- a/LayoutTests/http/tests/misc/client-hints-accept.php
+++ b/LayoutTests/http/tests/misc/client-hints-accept.php
@@ -1,5 +1,5 @@
<?php
- header("ACCEPT-CH: DPR, RW");
+ header("ACCEPT-CH: DPR, Width, Viewport-Width");
?>
<!DOCTYPE html>
<script src="../resources/testharness.js"></script>
@@ -13,15 +13,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);
});
« no previous file with comments | « no previous file | LayoutTests/http/tests/misc/client-hints-accept-meta.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698