OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script type="text/javascript" src="../inspector-protocol-test.js"></script> |
| 4 <script type="text/javascript" src="interception-test.js"></script> |
| 5 |
| 6 <script> |
| 7 function appendIframe() |
| 8 { |
| 9 var iframe = document.createElement("iframe"); |
| 10 iframe.src = "resources/redirect-iframe.html"; |
| 11 document.body.appendChild(iframe); |
| 12 } |
| 13 |
| 14 function test() |
| 15 { |
| 16 var requestInterceptedDict = { |
| 17 "redirect-iframe.html": InspectorTest.allowRequest, |
| 18 "redirect1.pl": InspectorTest.allowRequest, |
| 19 "redirect2.pl": InspectorTest.allowRequest, |
| 20 "redirect3.pl": InspectorTest.allowRequest, |
| 21 "final.js": InspectorTest.allowRequest, |
| 22 }; |
| 23 |
| 24 InspectorTest.startInterceptionTest(requestInterceptedDict, 1); |
| 25 } |
| 26 </script> |
| 27 </head> |
| 28 <body onload="runTest();"> |
| 29 <p>Tests interception of redirects.</a> |
| 30 </p> |
| 31 </body> |
| 32 </html> |
OLD | NEW |