Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(772)

Unified Diff: LayoutTests/http/tests/misc/client-hints-accept-meta-preloader.html

Issue 1121263002: Add Accept-CH meta http-equiv support to the preloader. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review nits Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/misc/client-hints-accept-meta-preloader-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();">
+
« no previous file with comments | « no previous file | LayoutTests/http/tests/misc/client-hints-accept-meta-preloader-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698