Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / misc / client-hints-accept-meta-preloader.html
blob2b93d612e9a9257736d4020eb7c0a07beed00b6d
1 <!DOCTYPE html>
2 <script>
3 if (window.testRunner)
4 testRunner.dumpAsText()
6 function checkIfPassed(value, expectation)
8 if (value == expectation)
9 document.getElementById('result').innerHTML = 'PASSED';
10 else
11 failed();
14 function failed()
16 document.getElementById('result').innerHTML = 'FAILED';
18 </script>
19 <script src="../resources/slow-script.pl?sleep=300"></script>
20 <meta http-equiv="Accept-CH" content="DPR, Viewport-Width">
21 This test checks that a meta based Accept-CH is properly parsed by the HTMLPreloadScanner.
22 <div id=result></div>
23 <img src='resources/image-checks-for-viewport-width.php'
24 onload="checkIfPassed(this.clientWidth, 128);"
25 onerror="failed();">