Index: LayoutTests/http/tests/misc/client-hints-accept-meta-preloader.html |
diff --git a/LayoutTests/http/tests/misc/client-hints-accept-meta-preloader.html b/LayoutTests/http/tests/misc/client-hints-accept-meta-preloader.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4b3a00f36a89bf53f3f1445d7c93f35eb760b095 |
--- /dev/null |
+++ b/LayoutTests/http/tests/misc/client-hints-accept-meta-preloader.html |
@@ -0,0 +1,26 @@ |
+<!DOCTYPE html> |
+<script> |
+ if (window.testRunner) |
+ testRunner.dumpAsText() |
+ |
+ function checkIfPassed(value, expectation) |
+ { |
+ if (value == expectation) |
+ document.getElementById('result').innerHTML = 'PASSED'; |
+ else |
+ failed(); |
+ } |
+ |
+ function failed() |
+ { |
+ document.getElementById('result').innerHTML = 'FAILED'; |
+ } |
+</script> |
+<script src="../resources/slow-script.pl?sleep=300"></script> |
+<meta http-equiv="Accept-CH" content="DPR, RW"> |
+This test checks that a meta based Accept-CH is properly parsed by the HTMLPreloadScanner. |
+<div id=result></div> |
+<img src='resources/image-checks-for-rw.php' |
+ onload="checkIfPassed(this.clientWidth, 128);" |
+ onerror="failed();"> |
+ |