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

Unified Diff: LayoutTests/http/tests/inspector/elements/styles/update-locations-on-filesystem-scss-load.html

Issue 396993003: DevTools: get rid of WebInspector.cssModel, use target models instead (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/http/tests/inspector/elements/styles/update-locations-on-filesystem-scss-load.html
diff --git a/LayoutTests/http/tests/inspector/elements/styles/update-locations-on-filesystem-scss-load.html b/LayoutTests/http/tests/inspector/elements/styles/update-locations-on-filesystem-scss-load.html
index af30034bf3d2e2718bcb1b6b8adf694103b1bc1d..ab28db87e57390519d3f5251219ec6d8ac2b5501 100644
--- a/LayoutTests/http/tests/inspector/elements/styles/update-locations-on-filesystem-scss-load.html
+++ b/LayoutTests/http/tests/inspector/elements/styles/update-locations-on-filesystem-scss-load.html
@@ -61,15 +61,15 @@ function test()
InspectorTest.createWorkspace();
manager = InspectorTest.createIsolatedFileSystemManager(InspectorTest.testWorkspace, InspectorTest.testFileSystemMapping);
- cssModel = new WebInspector.CSSStyleModel(WebInspector.targetManager.activeTarget(), InspectorTest.testWorkspace);
- WebInspector.targetManager.activeTarget().cssModel = cssModel;
+ cssModel = new WebInspector.CSSStyleModel(WebInspector.targetManager.mainTarget(), InspectorTest.testWorkspace);
+ WebInspector.targetManager.mainTarget().cssModel = cssModel;
new WebInspector.CSSStyleSheetMapping(cssModel, InspectorTest.testWorkspace, InspectorTest.testNetworkWorkspaceBinding);
var resourcesURL = WebInspector.ParsedURL.completeURL(WebInspector.resourceTreeModel.inspectedPageURL(), "resources/");
var namePrefix = "update-locations-on-filesystem-scss-load."
var cssURL = resourcesURL + namePrefix + "css";
var scssURL = resourcesURL + namePrefix + "scss";
- var cssLocation = new WebInspector.CSSLocation(WebInspector.targetManager.activeTarget(), cssURL, 0, 1);
+ var cssLocation = new WebInspector.CSSLocation(WebInspector.targetManager.mainTarget(), cssURL, 0, 1);
var scssContent =
["a {",
" foo: bar;",
« no previous file with comments | « LayoutTests/http/tests/inspector/debugger-test.js ('k') | LayoutTests/http/tests/inspector/filesystem/delete-entry.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698