| OLD | NEW |
| (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> |
| OLD | NEW |