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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector-protocol/request-referrer-policy.html

Issue 2942573003: [DevTools] New harness for inspector-protocol layout tests (Closed)
Patch Set: Protocol -> dp Created 3 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 src="../inspector-protocol/inspector-protocol-test.js"></script> 2 <script src="../inspector-protocol/resources/inspector-protocol-test.js"></scrip t>
3 <script src="/resources/get-host-info.js"></script> 3 <script src="/resources/get-host-info.js"></script>
4 <script> 4 <script>
5 function sendRequest(policy) { 5 function sendRequest(policy) {
6 var img = document.createElement("img"); 6 var img = document.createElement("img");
7 img.referrerPolicy = policy; 7 img.referrerPolicy = policy;
8 img.src = "/resources/square.png?" + Math.random(); 8 img.src = "/resources/square.png?" + Math.random();
9 document.body.appendChild(img); 9 document.body.appendChild(img);
10 } 10 }
11 11
12 function test() { 12 function test() {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 {"expression" : "sendRequest('" + policies[policy_num] + "')"}); 51 {"expression" : "sendRequest('" + policies[policy_num] + "')"});
52 } 52 }
53 } 53 }
54 </script> 54 </script>
55 <body onload="runTest()"> 55 <body onload="runTest()">
56 <p> 56 <p>
57 Tests that network requests are annotated with the correct referrer 57 Tests that network requests are annotated with the correct referrer
58 policy. 58 policy.
59 </p> 59 </p>
60 </body> 60 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698