| 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": function(event) { | 
|  | 19             InspectorTest.mockResponse(event, "HTTP/1.1 404 Not Found\r\n\r\n"); | 
|  | 20         }, | 
|  | 21     }; | 
|  | 22 | 
|  | 23     InspectorTest.startInterceptionTest(requestInterceptedDict); | 
|  | 24 } | 
|  | 25 </script> | 
|  | 26 </head> | 
|  | 27 <body onload="runTest();"> | 
|  | 28 <p>Tests a mock 404 resource.</a> | 
|  | 29 </p> | 
|  | 30 </body> | 
|  | 31 </html> | 
| OLD | NEW | 
|---|