| <!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, Viewport-Width"> |
| 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-viewport-width.php' |
| onload="checkIfPassed(this.clientWidth, 128);" |
| onerror="failed();"> |
| |