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

Side by Side 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 unified diff | 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 »
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="../console-test.js"></script>
5 <script src="../resources/source3.js"></script>
6 <script>
7
8 function test()
9 {
10 InspectorTest.evaluateInPage("foo()", step1);
11 WebInspector.inspectorView._tabbedPane.addEventListener(WebInspector.TabbedP ane.Events.TabSelected, panelChanged);
12
13 function panelChanged()
14 {
15 InspectorTest.addResult("Panel " + WebInspector.inspectorView._tabbedPan e._currentTab.id + " was opened.");
16 InspectorTest.completeTest();
17 }
18
19 var clickTarget;
20 function step1()
21 {
22 var firstMessageEl = WebInspector.ConsoleView.instance()._visibleViewMes sages[0].element();
23 clickTarget = firstMessageEl.querySelectorAll(".console-message-text a") [1];
24 WebInspector.inspectorView.showPanel("console").then(testClickTarget);
25 }
26
27 function testClickTarget()
28 {
29 InspectorTest.addResult("Clicking link " + clickTarget.textContent);
30 clickTarget.click();
31 }
32
33 InspectorFrontendHost.openInNewTab = function()
34 {
35 InspectorTest.addResult("Failure: Open link in new tab!!");
36 InspectorTest.completeTest();
37 };
38 }
39 </script>
40 </head>
41 <body onload="runTest()">
42 <p>
43 Test that relative links in traces open in the sources panel.
44 </p>
45 </body>
46 </html>
OLDNEW
« 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