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

Unified Diff: third_party/WebKit/LayoutTests/inspector/editor/editor-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/editor/editor-test.js
diff --git a/third_party/WebKit/LayoutTests/inspector/editor/editor-test.js b/third_party/WebKit/LayoutTests/inspector/editor/editor-test.js
index 7fc0d211797d305e841e397b127db56843f0734b..b0cc7eb4c2eb6713ac169e55ac25506f2e031e8d 100644
--- a/third_party/WebKit/LayoutTests/inspector/editor/editor-test.js
+++ b/third_party/WebKit/LayoutTests/inspector/editor/editor-test.js
@@ -22,7 +22,7 @@ function textWithSelection(text, selections)
}
var lines = text.split("\n");
- selections.sort(Common.TextRange.comparator);
+ selections.sort(TextUtils.TextRange.comparator);
for (var i = selections.length - 1; i >= 0; --i) {
var selection = selections[i];
selection = selection.normalize();
@@ -52,7 +52,7 @@ InspectorTest.setLineSelections = function(editor, selections)
selection.from = selection.column;
selection.to = selection.column;
}
- coords.push(new Common.TextRange(selection.line, selection.from, selection.line, selection.to));
+ coords.push(new TextUtils.TextRange(selection.line, selection.from, selection.line, selection.to));
}
editor.setSelections(coords);
}

Powered by Google App Engine
This is Rietveld 408576698