| OLD | NEW |
| (Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script src="../inspector-test.js"></script> |
| 4 <script src="../security-test.js"></script> |
| 5 <script> |
| 6 function test() |
| 7 { |
| 8 var request1 = new WebInspector.NetworkRequest(InspectorTest.mainTarget, 0,
"https://foo.test/", "https://foo.test", 0, 0, null); |
| 9 request1.setSecurityState(SecurityAgent.SecurityState.Secure); |
| 10 InspectorTest.dispatchRequestFinished(request1); |
| 11 |
| 12 InspectorTest.addResult("Before selecting origin view:"); |
| 13 InspectorTest.dumpDeepInnerHTML(WebInspector.SecurityPanel._instance()._visi
bleView.contentElement); |
| 14 |
| 15 WebInspector.SecurityPanel._instance()._sidebarTree._elementsByOrigin.get("h
ttps://foo.test").select(); |
| 16 |
| 17 InspectorTest.addResult("Panel on origin view before interstitial:"); |
| 18 InspectorTest.dumpDeepInnerHTML(WebInspector.SecurityPanel._instance()._visi
bleView.contentElement); |
| 19 |
| 20 // Test that the panel transitions to an origin view when an interstitial is
shown. https://crbug.com/559150 |
| 21 InspectorTest.mainTarget.model(WebInspector.ResourceTreeModel).dispatchEvent
ToListeners(WebInspector.ResourceTreeModel.EventTypes.InterstitialShown); |
| 22 InspectorTest.addResult("After interstitial is shown:"); |
| 23 InspectorTest.dumpDeepInnerHTML(WebInspector.SecurityPanel._instance()._visi
bleView.contentElement); |
| 24 |
| 25 InspectorTest.completeTest(); |
| 26 } |
| 27 </script> |
| 28 </head> |
| 29 <body onload="runTest()"> |
| 30 <p>Tests that the panel transitions to the overview view when navigating |
| 31 to an interstitial. Regression test for https://crbug.com/638601</p> |
| 32 </body> |
| 33 </html> |
| OLD | NEW |