| Index: LayoutTests/http/tests/misc/client-hints-invalid-accept.php
|
| diff --git a/LayoutTests/http/tests/misc/client-hints-accept.php b/LayoutTests/http/tests/misc/client-hints-invalid-accept.php
|
| similarity index 74%
|
| copy from LayoutTests/http/tests/misc/client-hints-accept.php
|
| copy to LayoutTests/http/tests/misc/client-hints-invalid-accept.php
|
| index 97ce2dc08d9fa3b577e270d963359b89005ecae8..794d7a4ad59f45f979db823ce9ea64cb7de82e7f 100644
|
| --- a/LayoutTests/http/tests/misc/client-hints-accept.php
|
| +++ b/LayoutTests/http/tests/misc/client-hints-invalid-accept.php
|
| @@ -1,5 +1,5 @@
|
| <?php
|
| - header("ACCEPT-CH: DPR, RW");
|
| + header("ACCEPT-CH: DPRW");
|
| ?>
|
| <!DOCTYPE html>
|
| <script src="../resources/testharness.js"></script>
|
| @@ -14,15 +14,15 @@
|
| var loadRWImage = function() {
|
| var img = new Image();
|
| img.src = 'resources/image-checks-for-rw.php';
|
| - img.onload = t.step_func(function(){ t.done(); });
|
| - img.onerror = t.step_func(unreached);
|
| + img.onload = t.step_func(unreached);
|
| + img.onerror = t.step_func(function(){ t.done(); });
|
| document.body.appendChild(img);
|
| };
|
| t.step(function() {
|
| var img = new Image();
|
| img.src = 'resources/image-checks-for-dpr.php';
|
| - img.onload = t.step_func(loadRWImage);
|
| - img.onerror = t.step_func(unreached);
|
| + img.onload = t.step_func(unreached);
|
| + img.onerror = t.step_func(loadRWImage);
|
| document.body.appendChild(img);
|
| });
|
| </script>
|
|
|