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/xhr-iframe-auth-fail.html"; |
| 11 document.body.appendChild(iframe); |
| 12 } |
| 13 |
| 14 function test() |
| 15 { |
| 16 var requestInterceptedDict = { |
| 17 "xhr-iframe-auth-fail.html": InspectorTest.allowRequest, |
| 18 "unauthorised.pl": InspectorTest.allowRequest, |
| 19 }; |
| 20 |
| 21 InspectorTest.startInterceptionTest(requestInterceptedDict, 1); |
| 22 } |
| 23 </script> |
| 24 </head> |
| 25 <body onload="runTest();"> |
| 26 <p>Tests interception of an XHR request that fails due to lack of credentials.</
a> |
| 27 </p> |
| 28 </body> |
| 29 </html> |
OLD | NEW |