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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script>
3 if (window.testRunner)
4 testRunner.dumpAsText()
5
6 function checkIfPassed(value, expectation)
7 {
8 if (value == expectation)
9 document.getElementById('result').innerHTML = 'PASSED';
10 else
11 failed();
12 }
13
14 function failed()
15 {
16 document.getElementById('result').innerHTML = 'FAILED';
17 }
18 </script>
19 <script src="../resources/slow-script.pl?sleep=300"></script>
20 <meta http-equiv="Accept-CH" content="DPR, RW">
21 This test checks that a meta based Accept-CH is properly parsed by the HTMLPrelo adScanner.
22 <div id=result></div>
23 <img src='resources/image-checks-for-rw.php'
24 onload="checkIfPassed(this.clientWidth, 128);"
25 onerror="failed();">
26
OLDNEW
« 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