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