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

Unified Diff: third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp

Issue 2746153008: Fix bug causing TextIterator to duplicate leading spaces (Closed)
Patch Set: Remove obsolete comment 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/Source/core/editing/FrameSelectionTest.cpp
diff --git a/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp b/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp
index 9047d807d2984a0b6b298c4b77bcdea5ae0faba9..d566ff080c633599465f68c011d17a0b816a22cf 100644
--- a/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp
+++ b/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp
@@ -152,8 +152,7 @@ TEST_F(FrameSelectionTest, SelectWordAroundPosition2) {
Node* const baz = document().body()->firstChild()->lastChild();
EXPECT_TRUE(selection().selectWordAroundPosition(
createVisiblePosition(Position(baz, 2))));
- // TODO(yoichio): We should select only "baz".
- EXPECT_EQ_SELECTED_TEXT(" baz");
+ EXPECT_EQ_SELECTED_TEXT("baz");
}
TEST_F(FrameSelectionTest, ModifyExtendWithFlatTree) {

Powered by Google App Engine
This is Rietveld 408576698