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

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

Issue 881263002: DevTools: use target-based model accessors only. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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
Index: LayoutTests/inspector-enabled/sources/debugger/linkifier.html
diff --git a/LayoutTests/inspector-enabled/sources/debugger/linkifier.html b/LayoutTests/inspector-enabled/sources/debugger/linkifier.html
index b4cbd3ecbd14f90d5eee82f5bc8ffbce91b41a6c..f4d2871418c81a1eee0575168598701f68be5b5b 100644
--- a/LayoutTests/inspector-enabled/sources/debugger/linkifier.html
+++ b/LayoutTests/inspector-enabled/sources/debugger/linkifier.html
@@ -43,16 +43,16 @@ function test()
function debuggerTest()
{
- var scripts = WebInspector.debuggerModel.scripts;
+ var scripts = InspectorTest.debuggerModel.scripts;
for (var scriptId in scripts) {
var scriptCandidate = scripts[scriptId];
- if (scriptCandidate.sourceURL === WebInspector.resourceTreeModel.inspectedPageURL() && scriptCandidate.lineOffset === 4) {
+ if (scriptCandidate.sourceURL === InspectorTest.resourceTreeModel.inspectedPageURL() && scriptCandidate.lineOffset === 4) {
script = scriptCandidate;
break;
}
}
- uiSourceCode = WebInspector.workspace.uiSourceCodeForOriginURL(WebInspector.resourceTreeModel.inspectedPageURL());
+ uiSourceCode = WebInspector.workspace.uiSourceCodeForOriginURL(InspectorTest.resourceTreeModel.inspectedPageURL());
var linkifyMe = "at triggerError (http://localhost/show/:22:11)";
var fragment = WebInspector.linkifyStringAsFragment(linkifyMe);
var anchor = fragment.querySelector('a');
@@ -62,7 +62,7 @@ function test()
linkifier = new WebInspector.Linkifier();
var count1 = liveLocationsCount();
- link = linkifier.linkifyScriptLocation(WebInspector.targetManager.mainTarget(), null, WebInspector.resourceTreeModel.inspectedPageURL(), 8, 0, "dummy-class");
+ link = linkifier.linkifyScriptLocation(WebInspector.targetManager.mainTarget(), null, InspectorTest.resourceTreeModel.inspectedPageURL(), 8, 0, "dummy-class");
var count2 = liveLocationsCount();
InspectorTest.addResult("listeners added on raw source code: " + (count2 - count1));

Powered by Google App Engine
This is Rietveld 408576698