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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/misc/client-hint-accept-on-subresource.html

Issue 2860093003: Implement device-ram client hints header (Closed)
Patch Set: Rebase UseCounter.h Created 3 years, 7 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 | third_party/WebKit/LayoutTests/http/tests/misc/client-hints-accept.php » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/misc/client-hint-accept-on-subresource.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/misc/client-hint-accept-on-subresource.html b/third_party/WebKit/LayoutTests/http/tests/misc/client-hint-accept-on-subresource.html
index 1b3a54cac7fea42061d068208c9875f7836c114b..abbb62f9e5cda878f3c9f6d0c9a47b46df75273a 100644
--- a/third_party/WebKit/LayoutTests/http/tests/misc/client-hint-accept-on-subresource.html
+++ b/third_party/WebKit/LayoutTests/http/tests/misc/client-hint-accept-on-subresource.html
@@ -12,11 +12,18 @@
assert_unreached("Image should not have loaded.");
};
+ var loadDeviceRAMImage = function() {
+ var img = new Image();
+ img.src = 'resources/image-checks-for-device-ram.php';
+ img.onload = t.step_func(unreached);
+ img.onerror = t.step_func(function(){ t.done(); });
+ body.appendChild(img);
+ };
var loadRWImage = function() {
var img = new Image();
img.src = 'resources/image-checks-for-width.php';
img.onload = t.step_func(unreached);
- img.onerror = t.step_func(function(){ t.done(); });
+ img.onerror = t.step_func(loadDeviceRAMImage);
body.appendChild(img);
};
t.step(function() {
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/misc/client-hints-accept.php » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698