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

Unified Diff: LayoutTests/http/tests/inspector/stylesheet-source-mapping.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/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 d6377676e8e6c36e94d665347ed36c3d92ee357f..950704547d570b7fe07abef6e9f1b37664c18b17 100644
--- a/LayoutTests/http/tests/inspector/stylesheet-source-mapping.html
+++ b/LayoutTests/http/tests/inspector/stylesheet-source-mapping.html
@@ -11,8 +11,8 @@ function test()
var contentReceived;
var finalMappedLocation;
InspectorTest.createWorkspace();
- var cssModel = new WebInspector.CSSStyleModel(WebInspector.targetManager.activeTarget(), InspectorTest.testWorkspace);
- WebInspector.targetManager.activeTarget().cssModel = cssModel;
+ var cssModel = new WebInspector.CSSStyleModel(WebInspector.targetManager.mainTarget(), InspectorTest.testWorkspace);
+ WebInspector.targetManager.mainTarget().cssModel = cssModel;
var mapping = new WebInspector.CSSStyleSheetMapping(cssModel, InspectorTest.testWorkspace, InspectorTest.testNetworkWorkspaceBinding);
InspectorTest.waitForWorkspaceUISourceCodeAddedEvent(cssUISourceCodeAdded);
@@ -25,7 +25,7 @@ function test()
function locationsUpdated()
{
- var uiLocation = new WebInspector.CSSLocation(WebInspector.targetManager.activeTarget(), "http://localhost:8000/inspector/resources/example.css", 2, 3).toUILocation();
+ var uiLocation = new WebInspector.CSSLocation(WebInspector.targetManager.mainTarget(), "http://localhost:8000/inspector/resources/example.css", 2, 3).toUILocation();
if (uiLocation.uiSourceCode.url.indexOf(".scss") === -1)
return;
finalMappedLocation = uiLocation.uiSourceCode.url + ":" + uiLocation.lineNumber + ":" + uiLocation.columnNumber;
@@ -72,7 +72,7 @@ function test()
function rawLocationToUILocation(line, column)
{
- return new WebInspector.CSSLocation(WebInspector.targetManager.activeTarget(), "http://localhost:8000/inspector/resources/example.css", line, column).toUILocation();
+ return new WebInspector.CSSLocation(WebInspector.targetManager.mainTarget(), "http://localhost:8000/inspector/resources/example.css", line, column).toUILocation();
}
function afterStyleSheetAdded()

Powered by Google App Engine
This is Rietveld 408576698