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

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

Issue 220903002: DevTools: wrap DebuggerAgent.Location with DebuggerModel.Location. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: All tests!!! Created 6 years, 9 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 43928c9b4c0a01afdfafef6ba969fb3af9ea489b..03c2c055392706edea9a713bd28897801eec6b2c 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
@@ -62,13 +62,14 @@ 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;
new WebInspector.CSSStyleSheetMapping(cssModel, InspectorTest.testWorkspace, InspectorTest.testNetworkWorkspaceProvider);
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(cssURL, 0, 1);
+ var cssLocation = new WebInspector.CSSLocation(WebInspector.targetManager.activeTarget(), cssURL, 0, 1);
var scssContent =
["a {",
" foo: bar;",
@@ -96,7 +97,7 @@ function test()
addMockHeader(cssURL, cssURL + ".map");
InspectorTest.addResult("Adding network resource.");
InspectorTest.addMockUISourceCodeToWorkspace(cssURL, WebInspector.resourceTypes.Stylesheet, cssContent);
- liveLocation = cssModel.createLiveLocation("1", cssLocation, updateDelegate);
+ liveLocation = cssLocation.createLiveLocation("1", updateDelegate);
dumpLiveLocation();
InspectorTest.addResult("Adding filesystem SCSS.");
« no previous file with comments | « LayoutTests/http/tests/inspector/debugger-test.js ('k') | LayoutTests/http/tests/inspector/inspector-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698