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

Unified Diff: Source/core/editing/iterators/TextIteratorTest.cpp

Issue 1214293002: Get rid of findPlainText() with Range parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-06-30T15:11:38 Get rid of unused function collapsedToBoundary() Created 5 years, 6 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 | « Source/core/editing/iterators/TextIterator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/iterators/TextIteratorTest.cpp
diff --git a/Source/core/editing/iterators/TextIteratorTest.cpp b/Source/core/editing/iterators/TextIteratorTest.cpp
index 8ea50e89a073c7f4d2ec24748c5df5714e6b0bba..69f94360a4770b36d9d6e724520f46b5b87f4f87 100644
--- a/Source/core/editing/iterators/TextIteratorTest.cpp
+++ b/Source/core/editing/iterators/TextIteratorTest.cpp
@@ -390,7 +390,10 @@ TEST_F(TextIteratorTest, FindPlainTextInvalidTarget)
for (size_t i = 0; i < WTF_ARRAY_LENGTH(invalidUStrings); ++i) {
String invalidTarget(invalidUStrings[i]);
- RefPtrWillBeRawPtr<Range> actualRange = findPlainText(range.get(), invalidTarget, 0);
+ Position foundStart;
+ Position foundEnd;
+ findPlainText(range->startPosition(), range->endPosition(), invalidTarget, 0, foundStart, foundEnd);
+ RefPtrWillBeRawPtr<Range> actualRange = Range::create(document(), foundStart, foundEnd);
EXPECT_TRUE(areRangesEqual(expectedRange.get(), actualRange.get()));
}
}
« no previous file with comments | « Source/core/editing/iterators/TextIterator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698