| Index: third_party/WebKit/LayoutTests/inspector/sass/sass-test.js
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/sass/sass-test.js b/third_party/WebKit/LayoutTests/inspector/sass/sass-test.js
|
| index a76b61af25bc866520b3eb23b8a8c1cfbd4728ef..bcb06b8337da93a5452090509fe58086793ee022 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector/sass/sass-test.js
|
| +++ b/third_party/WebKit/LayoutTests/inspector/sass/sass-test.js
|
| @@ -6,20 +6,20 @@ var sassSourceMapFactory = null;
|
| InspectorTest.sassSourceMapFactory = function()
|
| {
|
| if (!sassSourceMapFactory)
|
| - sassSourceMapFactory = new WebInspector.SASSSourceMapFactory();
|
| + sassSourceMapFactory = new Sass.SASSSourceMapFactory();
|
| return sassSourceMapFactory;
|
| }
|
|
|
| InspectorTest.parseSCSS = function(url, text)
|
| {
|
| - return WebInspector.SASSSupport.parseSCSS(url, text);
|
| + return Sass.SASSSupport.parseSCSS(url, text);
|
| }
|
| InspectorTest.parseCSS = InspectorTest.parseSCSS;
|
|
|
| InspectorTest.loadASTMapping = function(header, callback)
|
| {
|
| - var completeSourceMapURL = WebInspector.ParsedURL.completeURL(header.sourceURL, header.sourceMapURL);
|
| - WebInspector.TextSourceMap.load(completeSourceMapURL, header.sourceURL).then(onSourceMapLoaded);
|
| + var completeSourceMapURL = Common.ParsedURL.completeURL(header.sourceURL, header.sourceMapURL);
|
| + SDK.TextSourceMap.load(completeSourceMapURL, header.sourceURL).then(onSourceMapLoaded);
|
|
|
| function onSourceMapLoaded(sourceMap)
|
| {
|
| @@ -96,7 +96,7 @@ InspectorTest.dumpASTDiff = function(diff)
|
| }
|
| ruleChanges.push(change);
|
| }
|
| - var T = WebInspector.SASSSupport.PropertyChangeType;
|
| + var T = Sass.SASSSupport.PropertyChangeType;
|
| for (var rule of changesPerRule.keys()) {
|
| var changes = changesPerRule.get(rule);
|
| var names = [];
|
| @@ -199,7 +199,7 @@ InspectorTest.updateCSSText = function(url, newText)
|
|
|
| InspectorTest.updateSASSText = function(url, newText)
|
| {
|
| - var uiSourceCode = WebInspector.workspace.uiSourceCodeForURL(url);
|
| + var uiSourceCode = Workspace.workspace.uiSourceCodeForURL(url);
|
| uiSourceCode.addRevision(newText);
|
| }
|
|
|
| @@ -279,7 +279,7 @@ InspectorTest.runCSSEditTests = function(header, tests)
|
| var edit = edits[i];
|
| var range = edit.oldRange;
|
| var line = String.sprintf("{%d, %d, %d, %d}", range.startLine, range.startColumn, range.endLine, range.endColumn);
|
| - line += String.sprintf(" '%s' => '%s'", (new WebInspector.Text(text)).extract(range), edit.newText);
|
| + line += String.sprintf(" '%s' => '%s'", (new Common.Text(text)).extract(range), edit.newText);
|
| lines.push(line);
|
| }
|
| lines = indent(lines);
|
| @@ -298,9 +298,9 @@ InspectorTest.createEdit = function(source, pattern, newText, matchNumber)
|
| }
|
| if (!match)
|
| return null;
|
| - var sourceRange = new WebInspector.SourceRange(match.index, match[0].length);
|
| - var textRange = new WebInspector.Text(source).toTextRange(sourceRange);
|
| - return new WebInspector.SourceEdit("", textRange, newText);
|
| + var sourceRange = new Common.SourceRange(match.index, match[0].length);
|
| + var textRange = new Common.Text(source).toTextRange(sourceRange);
|
| + return new Common.SourceEdit("", textRange, newText);
|
| }
|
|
|
| }
|
|
|