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..e4ac8eb5b07c153afedb3af4f2d95bacf6b1b221 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() { |