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

Unified Diff: LayoutTests/http/tests/misc/resources/image-checks-for-rw.php

Issue 1078633003: Added preloader support for sizes based RW values (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 8 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 | « LayoutTests/http/tests/misc/client-hints-preload-rw-sizes.html ('k') | Source/core/fetch/FetchRequest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/misc/resources/image-checks-for-rw.php
diff --git a/LayoutTests/http/tests/misc/resources/image-checks-for-rw.php b/LayoutTests/http/tests/misc/resources/image-checks-for-rw.php
index b63367d51dfd877d100b9a3322438acb0f2ceb89..4b83117b1d95ecf6e3b91c04adad95b877fa4524 100644
--- a/LayoutTests/http/tests/misc/resources/image-checks-for-rw.php
+++ b/LayoutTests/http/tests/misc/resources/image-checks-for-rw.php
@@ -1,7 +1,8 @@
<?php
$rw = $_SERVER["HTTP_RW"];
+ $expected_rw = $_GET["rw"];
- if($rw) {
+ if (($rw == $expected_rw) || ($rw && !$expected_rw)) {
$fn = fopen("compass.jpg", "r");
fpassthru($fn);
fclose($fn);
« no previous file with comments | « LayoutTests/http/tests/misc/client-hints-preload-rw-sizes.html ('k') | Source/core/fetch/FetchRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698