4 testRunner
.dumpAsText()
6 function checkIfPassed(value
, expectation
)
8 if (value
== expectation
)
9 document
.getElementById('result').innerHTML
= 'PASSED';
16 document
.getElementById('result').innerHTML
= 'FAILED';
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.
23 <img src='resources/image-checks-for-viewport-width.php'
24 onload=
"checkIfPassed(this.clientWidth, 128);"