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 InspectorTest.dispatchRequestFinished(request1); | 9 InspectorTest.dispatchRequestFinished(request1); |
10 | 10 |
11 var request2 = new SDK.NetworkRequest(InspectorTest.mainTarget, 0, "data:ima
ge/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAKCAYAAABmBXS+AAAAPElEQVR42mNgQAMZGR
n/GfABkIIdO3b8x6kQpgAEsCpEVgADKAqxKcBQCCLwARRFIBodYygiyiSCighhAO4e2jskhrm3AAAAAE
lFTkSuQmCC", "https://foo.test", 0, 0, null); | 11 var request2 = new SDK.NetworkRequest(InspectorTest.networkManager, Inspecto
rTest.NetworkAgent, 0, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAKCA
YAAABmBXS+AAAAPElEQVR42mNgQAMZGRn/GfABkIIdO3b8x6kQpgAEsCpEVgADKAqxKcBQCCLwARRFIB
odYygiyiSCighhAO4e2jskhrm3AAAAAElFTkSuQmCC", "https://foo.test", 0, 0, null); |
12 InspectorTest.dispatchRequestFinished(request2); | 12 InspectorTest.dispatchRequestFinished(request2); |
13 | 13 |
14 InspectorTest.dumpSecurityPanelSidebarOrigins(); | 14 InspectorTest.dumpSecurityPanelSidebarOrigins(); |
15 | 15 |
16 InspectorTest.completeTest(); | 16 InspectorTest.completeTest(); |
17 } | 17 } |
18 </script> | 18 </script> |
19 </head> | 19 </head> |
20 <body onload="runTest()"> | 20 <body onload="runTest()"> |
21 <p>Tests that blank origins aren't shown in the security panel origins list.</p> | 21 <p>Tests that blank origins aren't shown in the security panel origins list.</p> |
22 </body> | 22 </body> |
23 </html> | 23 </html> |
OLD | NEW |