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 /** @type {!Protocol.Security.InsecureContentStatus} */ | 8 /** @type {!Protocol.Security.InsecureContentStatus} */ |
9 var insecureContentStatus = { ranMixedContent: false, displayedMixedContent:
false, ranContentWithCertErrors: false, displayedContentWithCertErrors: false,
ranInsecureContentStyle: Protocol.Security.SecurityState.Insecure, displayedInse
cureContentStyle: Protocol.Security.SecurityState.Neutral }; | 9 var insecureContentStatus = { ranMixedContent: false, displayedMixedContent:
false, ranContentWithCertErrors: false, displayedContentWithCertErrors: false,
ranInsecureContentStyle: Protocol.Security.SecurityState.Insecure, displayedInse
cureContentStyle: Protocol.Security.SecurityState.Neutral }; |
10 | 10 |
11 InspectorTest.mainTarget.model(Security.SecurityModel).dispatchEventToListen
ers(Security.SecurityModel.Events.SecurityStateChanged, new Security.PageSecurit
yState(Protocol.Security.SecurityState.Secure, true, [], insecureContentStatus,
"Test: Summary Override Text")); | 11 InspectorTest.mainTarget.model(Security.SecurityModel).dispatchEventToListen
ers(Security.SecurityModel.Events.SecurityStateChanged, new Security.PageSecurit
yState(Protocol.Security.SecurityState.Secure, true, [], insecureContentStatus,
"Test: Summary Override Text")); |
12 | 12 |
13 var request = new SDK.NetworkRequest(InspectorTest.mainTarget, 0, "http://fo
o.test", "https://foo.test", 0, 0, null); | 13 var request = new SDK.NetworkRequest(InspectorTest.networkManager, Inspector
Test.NetworkAgent, 0, "http://foo.test", "https://foo.test", 0, 0, null); |
14 InspectorTest.dispatchRequestFinished(request); | 14 InspectorTest.dispatchRequestFinished(request); |
15 | 15 |
16 InspectorTest.dumpDeepInnerHTML(Security.SecurityPanel._instance()._mainView
.contentElement.getElementsByClassName("security-summary-text")[0]); | 16 InspectorTest.dumpDeepInnerHTML(Security.SecurityPanel._instance()._mainView
.contentElement.getElementsByClassName("security-summary-text")[0]); |
17 | 17 |
18 var explanations = Security.SecurityPanel._instance()._mainView.contentEleme
nt.getElementsByClassName("security-explanation"); | 18 var explanations = Security.SecurityPanel._instance()._mainView.contentEleme
nt.getElementsByClassName("security-explanation"); |
19 for (var i = 0; i < explanations.length; i++) | 19 for (var i = 0; i < explanations.length; i++) |
20 InspectorTest.dumpDeepInnerHTML(explanations[i]); | 20 InspectorTest.dumpDeepInnerHTML(explanations[i]); |
21 InspectorTest.completeTest(); | 21 InspectorTest.completeTest(); |
22 } | 22 } |
23 </script> | 23 </script> |
24 </head> | 24 </head> |
25 <body onload="runTest()"> | 25 <body onload="runTest()"> |
26 <p>Tests summary and explanation when all page resources are transferred securel
y (no-mixed-content) but page is flagged by Google Safe Browsing.</p> | 26 <p>Tests summary and explanation when all page resources are transferred securel
y (no-mixed-content) but page is flagged by Google Safe Browsing.</p> |
27 </body> | 27 </body> |
28 </html> | 28 </html> |
OLD | NEW |