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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/search/source-frame-search.html

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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/editor/editor-test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/inspector/search/source-frame-search.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/search/source-frame-search.html b/third_party/WebKit/LayoutTests/http/tests/inspector/search/source-frame-search.html
index da5a509a8b0216ff31a27c02abc8bf76ed181739..175fbc408f0916865953653046b8fed767fd2351 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/search/source-frame-search.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/search/source-frame-search.html
@@ -24,9 +24,9 @@ function test()
var range = searchResults[i];
var prefixRange = new WebInspector.TextRange(range.startLine, 0, range.startLine, range.startColumn);
var postfixRange = new WebInspector.TextRange(range.endLine, range.endColumn, range.endLine, sourceFrame._textEditor.line(range.endLine).length);
- var prefix = sourceFrame._textEditor.copyRange(prefixRange);
- var result = sourceFrame._textEditor.copyRange(range);
- var postfix = sourceFrame._textEditor.copyRange(postfixRange);
+ var prefix = sourceFrame._textEditor.text(prefixRange);
+ var result = sourceFrame._textEditor.text(range);
+ var postfix = sourceFrame._textEditor.text(postfixRange);
InspectorTest.addResult(" - " + prefix + "<" + result + ">" + postfix);
}
}
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/editor/editor-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698