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

Unified Diff: third_party/WebKit/LayoutTests/inspector-enabled/sources/debugger/linkifier.html

Issue 2527763003: [DevTools] Turn links into spans to prevent default behavior. (Closed)
Patch Set: fixed comments 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
Index: third_party/WebKit/LayoutTests/inspector-enabled/sources/debugger/linkifier.html
diff --git a/third_party/WebKit/LayoutTests/inspector-enabled/sources/debugger/linkifier.html b/third_party/WebKit/LayoutTests/inspector-enabled/sources/debugger/linkifier.html
index 403ad5db62f014c70ce22ac140ee63b08722cc48..8658d0f0848f7dfa0cb17304d7179dc3cbb37e1f 100644
--- a/third_party/WebKit/LayoutTests/inspector-enabled/sources/debugger/linkifier.html
+++ b/third_party/WebKit/LayoutTests/inspector-enabled/sources/debugger/linkifier.html
@@ -55,9 +55,9 @@ function test()
uiSourceCode = Workspace.workspace.uiSourceCodeForURL(InspectorTest.mainTarget.inspectedURL());
var linkifyMe = "at triggerError (http://localhost/show/:22:11)";
var fragment = Components.linkifyStringAsFragment(linkifyMe);
- var anchor = fragment.querySelector('a');
- InspectorTest.addResult("The string \"" + linkifyMe + " \" linkifies to url: " + anchor.href);
+ var anchor = fragment.querySelector('.devtools-link');
var info = Components.Linkifier._linkInfo(anchor);
+ InspectorTest.addResult("The string \"" + linkifyMe + " \" linkifies to url: " + (info && info.url));
InspectorTest.addResult("The lineNumber is " + (info && info.lineNumber));
InspectorTest.addResult("The columnNumber is " + (info && info.columnNumber));

Powered by Google App Engine
This is Rietveld 408576698