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

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

Issue 2269183003: DevTools: Merge CodeMirrorTextEditor's copyRange into text (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 051d4e2a3e82ab155905a95d39d621a72dafa772..4fe9ae1e47a92997b94dc6e82380d97585cb3e70 100644
--- a/third_party/WebKit/LayoutTests/inspector/editor/editor-test.js
+++ b/third_party/WebKit/LayoutTests/inspector/editor/editor-test.js
@@ -188,7 +188,7 @@ InspectorTest.dumpSelectionStats = function(textEditor)
var selections = textEditor.selections();
for (var i = 0; i < selections.length; ++i) {
var selection = selections[i];
- var text = textEditor.copyRange(selection);
+ var text = textEditor.text(selection);
if (!listHashMap[text]) {
listHashMap[text] = 1;
sortedKeys.push(text);

Powered by Google App Engine
This is Rietveld 408576698