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

Unified Diff: LayoutTests/http/tests/inspector/stylesheet-source-mapping.html

Issue 297923002: DevTools: Decouple CSS model from UI entities (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove unused argument in test 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/stylesheet-source-mapping.html
diff --git a/LayoutTests/http/tests/inspector/stylesheet-source-mapping.html b/LayoutTests/http/tests/inspector/stylesheet-source-mapping.html
index b87566b876f0af28a8112e7d3219f0f4880cf032..9baa6310a95b202ca91a0dbac301530a7172d9c0 100644
--- a/LayoutTests/http/tests/inspector/stylesheet-source-mapping.html
+++ b/LayoutTests/http/tests/inspector/stylesheet-source-mapping.html
@@ -12,9 +12,9 @@ function test()
var finalMappedLocation;
InspectorTest.createWorkspace();
var target = WebInspector.targetManager.mainTarget();
- var cssModel = new WebInspector.CSSStyleModel(target, InspectorTest.testWorkspace);
+ var cssModel = new WebInspector.CSSStyleModel(target);
target.cssModel = cssModel;
- var mapping = new WebInspector.CSSStyleSheetMapping(cssModel, InspectorTest.testWorkspace, InspectorTest.testNetworkWorkspaceBinding);
+ new WebInspector.CSSWorkspaceBinding.TargetInfo(target, InspectorTest.testWorkspace, InspectorTest.testNetworkWorkspaceBinding);
InspectorTest.waitForWorkspaceUISourceCodeAddedEvent(cssUISourceCodeAdded);
const styleSheetURL = "http://localhost:8000/inspector/resources/example.css";
@@ -22,7 +22,7 @@ function test()
const styleSheetId = 1;
InspectorTest.addMockUISourceCodeToWorkspace(styleSheetURL, WebInspector.resourceTypes.Stylesheet, "");
- InspectorTest.addSniffer(WebInspector.CSSStyleSheetHeader.prototype, "updateLocations", locationsUpdated, true);
+ InspectorTest.addSniffer(WebInspector.CSSWorkspaceBinding.prototype, "updateLocations", locationsUpdated, true);
cssModel._styleSheetAdded(createMockStyleSheetHeader(styleSheetURL, sourceMapURL));
function locationsUpdated()

Powered by Google App Engine
This is Rietveld 408576698