OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../inspector-test.js"></script> | 3 <script src="../inspector-test.js"></script> |
4 <script src="../security-test.js"></script> | 4 <script src="../security-test.js"></script> |
5 <script> | 5 <script> |
6 function test() | 6 function test() |
7 { | 7 { |
8 var request1 = new SDK.NetworkRequest(InspectorTest.mainTarget, 0, "https://
foo.test/foo.jpg", "https://foo.test", 0, 0, null); | 8 var request1 = new SDK.NetworkRequest(InspectorTest.networkManager, Inspecto
rTest.NetworkAgent, 0, "https://foo.test/foo.jpg", "https://foo.test", 0, 0, nul
l); |
9 request1.setSecurityState(Protocol.Security.SecurityState.Secure); | 9 request1.setSecurityState(Protocol.Security.SecurityState.Secure); |
10 InspectorTest.dispatchRequestFinished(request1); | 10 InspectorTest.dispatchRequestFinished(request1); |
11 | 11 |
12 var request2 = new SDK.NetworkRequest(InspectorTest.mainTarget, 0, "https://
does-not-resolve.test", "https://does-not-resolve.test", 0, 0, null); | 12 var request2 = new SDK.NetworkRequest(InspectorTest.networkManager, Inspecto
rTest.NetworkAgent, 0, "https://does-not-resolve.test", "https://does-not-resolv
e.test", 0, 0, null); |
13 // Leave the security state unknown. | 13 // Leave the security state unknown. |
14 InspectorTest.dispatchRequestFinished(request2); | 14 InspectorTest.dispatchRequestFinished(request2); |
15 | 15 |
16 InspectorTest.dumpSecurityPanelSidebarOrigins(); | 16 InspectorTest.dumpSecurityPanelSidebarOrigins(); |
17 | 17 |
18 InspectorTest.completeTest(); | 18 InspectorTest.completeTest(); |
19 } | 19 } |
20 </script> | 20 </script> |
21 </head> | 21 </head> |
22 <body onload="runTest()"> | 22 <body onload="runTest()"> |
23 <p>Tests that origins with failed requests are shown correctly in the security p
anel origins list.</p> | 23 <p>Tests that origins with failed requests are shown correctly in the security p
anel origins list.</p> |
24 </body> | 24 </body> |
25 </html> | 25 </html> |
OLD | NEW |