Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/security/origin-view-then-interstitial.html

Issue 2244233008: DevTools security panel: switch to overview on interstitials (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert accidental change Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/security/origin-view-then-interstitial-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/security/origin-view-then-interstitial-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698