| Index: third_party/WebKit/LayoutTests/http/tests/misc/client-hints-accept-meta.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/misc/client-hints-accept-meta.html b/third_party/WebKit/LayoutTests/http/tests/misc/client-hints-accept-meta.html
|
| index d463e57f7cf8e118caa9b6087af1b7b7d858418e..ea44f4a0894edf3527e3d699005affca80a042f4 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/misc/client-hints-accept-meta.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/misc/client-hints-accept-meta.html
|
| @@ -1,5 +1,5 @@
|
| <!DOCTYPE html>
|
| -<meta http-equiv="Accept-CH" content="DPR, Width, Viewport-Width">
|
| +<meta http-equiv="Accept-CH" content="DPR, Width, Viewport-Width, Device-RAM">
|
| <script src="../resources/testharness.js"></script>
|
| <script src="../resources/testharnessreport.js"></script>
|
| <body>
|
| @@ -9,11 +9,18 @@
|
| assert_unreached("Image should have loaded.");
|
| };
|
|
|
| + var loadDeviceRAMImage = function() {
|
| + var img = new Image();
|
| + img.src = 'resources/image-checks-for-device-ram.php';
|
| + img.onload = t.step_func(function(){ t.done(); });
|
| + img.onerror = t.step_func(unreached);
|
| + document.body.appendChild(img);
|
| + };
|
| var loadRWImage = function() {
|
| var img = new Image();
|
| img.src = 'resources/image-checks-for-width.php';
|
| img.sizes = '100vw';
|
| - img.onload = t.step_func(function(){ t.done(); });
|
| + img.onload = t.step_func(loadDeviceRAMImage);
|
| img.onerror = t.step_func(unreached);
|
| document.body.appendChild(img);
|
| };
|
|
|