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

Side by Side Diff: LayoutTests/http/tests/misc/client-hints-accept-meta-preloader.html

Issue 1183233002: Split RW hint into Width and Viewport-Width (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed and added layout tests Created 5 years, 6 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script> 2 <script>
3 if (window.testRunner) 3 if (window.testRunner)
4 testRunner.dumpAsText() 4 testRunner.dumpAsText()
5 5
6 function checkIfPassed(value, expectation) 6 function checkIfPassed(value, expectation)
7 { 7 {
8 if (value == expectation) 8 if (value == expectation)
9 document.getElementById('result').innerHTML = 'PASSED'; 9 document.getElementById('result').innerHTML = 'PASSED';
10 else 10 else
11 failed(); 11 failed();
12 } 12 }
13 13
14 function failed() 14 function failed()
15 { 15 {
16 document.getElementById('result').innerHTML = 'FAILED'; 16 document.getElementById('result').innerHTML = 'FAILED';
17 } 17 }
18 </script> 18 </script>
19 <script src="../resources/slow-script.pl?sleep=300"></script> 19 <script src="../resources/slow-script.pl?sleep=300"></script>
20 <meta http-equiv="Accept-CH" content="DPR, RW"> 20 <meta http-equiv="Accept-CH" content="DPR, Width">
21 This test checks that a meta based Accept-CH is properly parsed by the HTMLPrelo adScanner. 21 This test checks that a meta based Accept-CH is properly parsed by the HTMLPrelo adScanner.
22 <div id=result></div> 22 <div id=result></div>
23 <img src='resources/image-checks-for-rw.php' 23 <img src='resources/image-checks-for-width.php'
24 onload="checkIfPassed(this.clientWidth, 128);" 24 onload="checkIfPassed(this.clientWidth, 128);"
25 onerror="failed();"> 25 onerror="failed();">
26 26
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698