| 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/iframe-auth-js.html"; | 10 iframe.src = "resources/iframe-auth-js.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 "iframe-auth-js.html": InspectorTest.allowRequest, | 17 "iframe-auth-js.html": InspectorTest.allowRequest, |
| 18 "unauthorised.pl": InspectorTest.allowRequest, | 18 "unauthorised.pl": InspectorTest.allowRequest, |
| 19 "unauthorised.pl+Auth": function(event) { | 19 "unauthorised.pl+Auth": function(event) { |
| 20 InspectorTest.provideAuthCredentials( | 20 InspectorTest.provideAuthCredentials( |
| 21 event, "TestUser", "TestPassword"); | 21 event, "TestUser", "TestPassword"); |
| 22 } | 22 } |
| 23 }; | 23 }; |
| 24 | 24 |
| 25 InspectorTest.startInterceptionTest(requestInterceptedDict, 1); | 25 InspectorTest.startInterceptionTest(requestInterceptedDict, 1); |
| 26 } | 26 } |
| 27 </script> | 27 </script> |
| 28 </head> | 28 </head> |
| 29 <body onload="runTest();"> | 29 <body onload="runTest();"> |
| 30 <p>Tests providing HTTP auth credentials over DevTools protocol.</a> | 30 <p>Tests providing HTTP auth credentials over DevTools protocol.</a> |
| 31 </p> | 31 </p> |
| 32 </body> | 32 </body> |
| 33 </html> | 33 </html> |
| OLD | NEW |