Index: third_party/WebKit/LayoutTests/http/tests/misc/client-hints-no-accept.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/misc/client-hints-no-accept.html b/third_party/WebKit/LayoutTests/http/tests/misc/client-hints-no-accept.html |
index 2e35251b2db87ece1229df8f500c63433852f18a..96ca3696b779a0dd019112d0b279f5054c002490 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/misc/client-hints-no-accept.html |
+++ b/third_party/WebKit/LayoutTests/http/tests/misc/client-hints-no-accept.html |
@@ -9,11 +9,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() { |