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

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: Rebase after AcceptClientHints move 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
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

Powered by Google App Engine
This is Rietveld 408576698