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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/redirect-interception-blocked.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 <html> 1 <html>
2 <head> 2 <head>
3 <script type="text/javascript" src="../inspector-protocol-test.js"></script> 3 <script type="text/javascript" src="../resources/inspector-protocol-test.js"></s cript>
4 <script type="text/javascript" src="interception-test.js"></script> 4 <script type="text/javascript" src="../resources/interception-test.js"></script>
5 5
6 <script> 6 <script>
7 function appendIframe() 7 function appendIframe()
8 { 8 {
9 var iframe = document.createElement("iframe"); 9 var iframe = document.createElement("iframe");
10 iframe.src = "resources/redirect-iframe.html"; 10 iframe.src = "resources/redirect-iframe.html";
11 document.body.appendChild(iframe); 11 document.body.appendChild(iframe);
12 } 12 }
13 13
14 function test() 14 function test()
15 { 15 {
16 var requestInterceptedDict = { 16 var requestInterceptedDict = {
17 "redirect-iframe.html": InspectorTest.allowRequest, 17 "redirect-iframe.html": InspectorTest.allowRequest,
18 "redirect1.pl": InspectorTest.allowRequest, 18 "redirect1.pl": InspectorTest.allowRequest,
19 "redirect2.pl": function(event) { 19 "redirect2.pl": function(event) {
20 InspectorTest.blockRequest(event, "AddressUnreachable"); 20 InspectorTest.blockRequest(event, "AddressUnreachable");
21 }, 21 },
22 }; 22 };
23 23
24 InspectorTest.startInterceptionTest(requestInterceptedDict); 24 InspectorTest.startInterceptionTest(requestInterceptedDict);
25 } 25 }
26 </script> 26 </script>
27 </head> 27 </head>
28 <body onload="runTest();"> 28 <body onload="runTest();">
29 <p>Tests interception of redirects.</a> 29 <p>Tests interception of redirects.</a>
30 </p> 30 </p>
31 </body> 31 </body>
32 </html> 32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698