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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/console/console-links-in-errors-with-trace.html

Issue 2491213003: DevTools: clicking console messages with traces should check for links (Closed)
Patch Set: Created 4 years, 1 month 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/console/console-links-in-errors-with-trace-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/console/console-links-in-errors-with-trace.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/console/console-links-in-errors-with-trace.html b/third_party/WebKit/LayoutTests/http/tests/inspector/console/console-links-in-errors-with-trace.html
new file mode 100644
index 0000000000000000000000000000000000000000..f80e01968c0c8a6f161847a63e353248c09c6053
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/console/console-links-in-errors-with-trace.html
@@ -0,0 +1,46 @@
+<html>
+<head>
+<script src="../inspector-test.js"></script>
+<script src="../console-test.js"></script>
+<script src="../resources/source3.js"></script>
+<script>
+
+function test()
+{
+ InspectorTest.evaluateInPage("foo()", step1);
+ WebInspector.inspectorView._tabbedPane.addEventListener(WebInspector.TabbedPane.Events.TabSelected, panelChanged);
+
+ function panelChanged()
+ {
+ InspectorTest.addResult("Panel " + WebInspector.inspectorView._tabbedPane._currentTab.id + " was opened.");
+ InspectorTest.completeTest();
+ }
+
+ var clickTarget;
+ function step1()
+ {
+ var firstMessageEl = WebInspector.ConsoleView.instance()._visibleViewMessages[0].element();
+ clickTarget = firstMessageEl.querySelectorAll(".console-message-text a")[1];
+ WebInspector.inspectorView.showPanel("console").then(testClickTarget);
+ }
+
+ function testClickTarget()
+ {
+ InspectorTest.addResult("Clicking link " + clickTarget.textContent);
+ clickTarget.click();
+ }
+
+ InspectorFrontendHost.openInNewTab = function()
+ {
+ InspectorTest.addResult("Failure: Open link in new tab!!");
+ InspectorTest.completeTest();
+ };
+}
+</script>
+</head>
+<body onload="runTest()">
+<p>
+Test that relative links in traces open in the sources panel.
+</p>
+</body>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/console/console-links-in-errors-with-trace-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698