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

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

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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: third_party/WebKit/LayoutTests/http/tests/inspector/stylesheet-source-mapping.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/stylesheet-source-mapping.html b/third_party/WebKit/LayoutTests/http/tests/inspector/stylesheet-source-mapping.html
index 900197eb173cf21e9196d9dfac46329af39ab38c..ac861453edf8d1f7852e899560648a5e53ef6890 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/stylesheet-source-mapping.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/stylesheet-source-mapping.html
@@ -10,21 +10,21 @@ function test()
var contentReceived;
var finalMappedLocation;
var target = InspectorTest.createWorkspaceWithTarget();
- var cssModel = WebInspector.CSSModel.fromTarget(target);
- WebInspector.cssWorkspaceBinding = InspectorTest.testCSSWorkspaceBinding;
+ var cssModel = SDK.CSSModel.fromTarget(target);
+ Bindings.cssWorkspaceBinding = InspectorTest.testCSSWorkspaceBinding;
InspectorTest.waitForWorkspaceUISourceCodeAddedEvent(cssUISourceCodeAdded);
const styleSheetURL = "http://localhost:8000/inspector/resources/example.css";
const sourceMapURL = "example.css.map";
const styleSheetId = "1";
- InspectorTest.addSniffer(WebInspector.CSSWorkspaceBinding.TargetInfo.prototype, "_updateLocations", locationsUpdated, true);
+ InspectorTest.addSniffer(Bindings.CSSWorkspaceBinding.TargetInfo.prototype, "_updateLocations", locationsUpdated, true);
cssModel._styleSheetAdded(createMockStyleSheetHeader(styleSheetURL, sourceMapURL));
function locationsUpdated()
{
var header = cssModel.styleSheetHeaderForId(styleSheetId);
- var uiLocation = InspectorTest.testCSSWorkspaceBinding.rawLocationToUILocation(new WebInspector.CSSLocation(header, 2, 3));
+ var uiLocation = InspectorTest.testCSSWorkspaceBinding.rawLocationToUILocation(new SDK.CSSLocation(header, 2, 3));
if (uiLocation.uiSourceCode.url().indexOf(".scss") === -1)
return;
finalMappedLocation = uiLocation.uiSourceCode.url() + ":" + uiLocation.lineNumber + ":" + uiLocation.columnNumber;
@@ -49,7 +49,7 @@ function test()
{
const documentURL = "http://localhost:8000/inspector/stylesheet-source-mapping.html";
const frame = InspectorTest.resourceTreeModel.mainFrame;
- var resource = new WebInspector.Resource(target, null, url, documentURL, frame.id, frame.loaderId, WebInspector.resourceTypes.Stylesheet, mimeType);
+ var resource = new SDK.Resource(target, null, url, documentURL, frame.id, frame.loaderId, Common.resourceTypes.Stylesheet, mimeType);
resource.requestContent = function()
{
return Promise.resolve(content);
@@ -67,7 +67,7 @@ function test()
function rawLocationToUILocation(line, column)
{
var header = cssModel.styleSheetHeaderForId(styleSheetId);
- return InspectorTest.testCSSWorkspaceBinding.rawLocationToUILocation(new WebInspector.CSSLocation(header, line, column));
+ return InspectorTest.testCSSWorkspaceBinding.rawLocationToUILocation(new SDK.CSSLocation(header, line, column));
}
function scssUISourceCodeAdded(uiSourceCode)

Powered by Google App Engine
This is Rietveld 408576698