Index: third_party/WebKit/LayoutTests/http/tests/misc/client-hints-invalid-accept.php |
diff --git a/third_party/WebKit/LayoutTests/http/tests/misc/client-hints-invalid-accept.php b/third_party/WebKit/LayoutTests/http/tests/misc/client-hints-invalid-accept.php |
index aa31dd4cc5de0657a9221a01d50e885050d894ce..4fd552a904cbc0a2832b4fd1d368d374532fad15 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/misc/client-hints-invalid-accept.php |
+++ b/third_party/WebKit/LayoutTests/http/tests/misc/client-hints-invalid-accept.php |
@@ -11,11 +11,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(); }); |
+ document.body.appendChild(img); |
+ }; |
var loadRWImage = function() { |
var img = new Image(); |
img.src = 'resources/image-checks-for-rw.php'; |
img.onload = t.step_func(unreached); |
- img.onerror = t.step_func(function(){ t.done(); }); |
+ img.onerror = t.step_func(loadDeviceRamImage); |
document.body.appendChild(img); |
}; |
t.step(function() { |