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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/inspector/security/origin-view-then-interstitial.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/security/origin-view-then-interstitial.html b/third_party/WebKit/LayoutTests/http/tests/inspector/security/origin-view-then-interstitial.html
new file mode 100644
index 0000000000000000000000000000000000000000..21c5e694f7bc82885d238840fc1666145bc0fe3d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/security/origin-view-then-interstitial.html
@@ -0,0 +1,33 @@
+<html>
+<head>
+<script src="../inspector-test.js"></script>
+<script src="../security-test.js"></script>
+<script>
+function test()
+{
+ var request1 = new WebInspector.NetworkRequest(InspectorTest.mainTarget, 0, "https://foo.test/", "https://foo.test", 0, 0, null);
+ request1.setSecurityState(SecurityAgent.SecurityState.Secure);
+ InspectorTest.dispatchRequestFinished(request1);
+
+ InspectorTest.addResult("Before selecting origin view:");
+ InspectorTest.dumpDeepInnerHTML(WebInspector.SecurityPanel._instance()._visibleView.contentElement);
+
+ WebInspector.SecurityPanel._instance()._sidebarTree._elementsByOrigin.get("https://foo.test").select();
+
+ InspectorTest.addResult("Panel on origin view before interstitial:");
+ InspectorTest.dumpDeepInnerHTML(WebInspector.SecurityPanel._instance()._visibleView.contentElement);
+
+ // Test that the panel transitions to an origin view when an interstitial is shown. https://crbug.com/559150
+ InspectorTest.mainTarget.model(WebInspector.ResourceTreeModel).dispatchEventToListeners(WebInspector.ResourceTreeModel.EventTypes.InterstitialShown);
+ InspectorTest.addResult("After interstitial is shown:");
+ InspectorTest.dumpDeepInnerHTML(WebInspector.SecurityPanel._instance()._visibleView.contentElement);
+
+ InspectorTest.completeTest();
+}
+</script>
+</head>
+<body onload="runTest()">
+<p>Tests that the panel transitions to the overview view when navigating
+to an interstitial. Regression test for https://crbug.com/638601</p>
+</body>
+</html>
« 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