OLD | NEW |
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/xhr-iframe-auth-fail.html"; | 10 iframe.src = "resources/xhr-iframe-auth-fail.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 "xhr-iframe-auth-fail.html": InspectorTest.allowRequest, | 17 "xhr-iframe-auth-fail.html": InspectorTest.allowRequest, |
18 "unauthorised.pl": InspectorTest.allowRequest, | 18 "unauthorised.pl": InspectorTest.allowRequest, |
19 "unauthorised.pl+Auth": InspectorTest.defaultAuth, | 19 "unauthorised.pl+Auth": InspectorTest.defaultAuth, |
20 }; | 20 }; |
21 | 21 |
22 InspectorTest.startInterceptionTest(requestInterceptedDict, 1); | 22 InspectorTest.startInterceptionTest(requestInterceptedDict, 1); |
23 } | 23 } |
24 </script> | 24 </script> |
25 </head> | 25 </head> |
26 <body onload="runTest();"> | 26 <body onload="runTest();"> |
27 <p>Tests interception of an XHR request that fails due to lack of credentials.</
a> | 27 <p>Tests interception of an XHR request that fails due to lack of credentials.</
a> |
28 </p> | 28 </p> |
29 </body> | 29 </body> |
30 </html> | 30 </html> |
OLD | NEW |