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

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

Issue 1041463003: Remove methods of TextIterator that take Range objects (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add assertions Created 5 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
« no previous file with comments | « Source/core/editing/iterators/TextIterator.cpp ('k') | Source/core/html/HTMLTextFormControlElement.cpp » ('j') | 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 ab2f44ec01887c306c7e3fa8ad58c31e76ebe114..c1fde6a6ac61d0519a50035b51f05c610d131428 100644
--- a/Source/core/editing/iterators/TextIteratorTest.cpp
+++ b/Source/core/editing/iterators/TextIteratorTest.cpp
@@ -85,7 +85,7 @@ void TextIteratorTest::SetUp()
Vector<String> TextIteratorTest::iterate(TextIteratorBehavior iteratorBehavior)
{
RefPtrWillBeRawPtr<Range> range = getBodyRange();
- TextIterator iterator(range.get(), iteratorBehavior);
+ TextIterator iterator(range->startPosition(), range->endPosition(), iteratorBehavior);
return iterateWithIterator(iterator);
}
@@ -588,7 +588,7 @@ TEST_F(TextIteratorTest, RangeLengthWithReplacedElements)
Node* divNode = document().getElementById("div");
RefPtrWillBeRawPtr<Range> range = Range::create(document(), divNode, 0, divNode, 3);
- EXPECT_EQ(3, TextIterator::rangeLength(range.get()));
+ EXPECT_EQ(3, TextIterator::rangeLength(range->startPosition(), range->endPosition()));
}
TEST_F(TextIteratorTest, SubrangeWithReplacedElements)
« no previous file with comments | « Source/core/editing/iterators/TextIterator.cpp ('k') | Source/core/html/HTMLTextFormControlElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698