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

Side by Side Diff: LayoutTests/http/tests/misc/client-hints-accept.php

Issue 951303003: Added basic client hints support. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed expected files Created 5 years, 10 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/misc/client-hints-no-accept.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <?php
2 header("ACCEPT-CH: DPR, RW");
3 ?>
4 <!DOCTYPE html>
5 <script src="../resources/testharness.js"></script>
6 <script src="../resources/testharnessreport.js"></script>
7 <body>
8 <script>
9 var t = async_test('Client-Hints sent when Accept-CH header is present') ;
10 var unreached = function() {
11 assert_unreached("Image should have loaded.");
12 };
13
14 var loadRWImage = function() {
15 var img = new Image();
16 img.src = 'resources/image-checks-for-rw.php';
17 img.onload = t.step_func(function(){ t.done(); });
18 img.onerror = t.step_func(unreached);
19 document.body.appendChild(img);
20 };
21 t.step(function() {
22 var img = new Image();
23 img.src = 'resources/image-checks-for-dpr.php';
24 img.onload = t.step_func(loadRWImage);
25 img.onerror = t.step_func(unreached);
26 document.body.appendChild(img);
27 });
28 </script>
29 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/misc/client-hints-no-accept.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698