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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sass/sass-test.js

Issue 2769843003: DevTools: split text_utils out of common module (Closed)
Patch Set: rebaseline Created 3 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: 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 b0fe524ceac4bb6e16cff2bf4a7de6f1684fc580..addf50cf1ca4a7b510deb2f7958b2e286b30b652 100644
--- a/third_party/WebKit/LayoutTests/inspector/sass/sass-test.js
+++ b/third_party/WebKit/LayoutTests/inspector/sass/sass-test.js
@@ -286,7 +286,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 Common.Text(text)).extract(range), edit.newText);
+ line += String.sprintf(" '%s' => '%s'", (new TextUtils.Text(text)).extract(range), edit.newText);
lines.push(line);
}
lines = indent(lines);
@@ -305,9 +305,9 @@ InspectorTest.createEdit = function(source, pattern, newText, matchNumber)
}
if (!match)
return null;
- var sourceRange = new Common.SourceRange(match.index, match[0].length);
- var textRange = new Common.Text(source).toTextRange(sourceRange);
- return new Common.SourceEdit("", textRange, newText);
+ var sourceRange = new TextUtils.SourceRange(match.index, match[0].length);
+ var textRange = new TextUtils.Text(source).toTextRange(sourceRange);
+ return new TextUtils.SourceEdit("", textRange, newText);
}
}

Powered by Google App Engine
This is Rietveld 408576698