| Index: Source/core/editing/FrameSelectionTest.cpp
|
| diff --git a/Source/core/editing/FrameSelectionTest.cpp b/Source/core/editing/FrameSelectionTest.cpp
|
| index 2aea63be379eab58fcfb09c86e29415cfadeeaae..acaf7d96c8689ec6ffc59cf98f482692f1f135c8 100644
|
| --- a/Source/core/editing/FrameSelectionTest.cpp
|
| +++ b/Source/core/editing/FrameSelectionTest.cpp
|
| @@ -138,4 +138,12 @@ TEST_F(FrameSelectionTest, PaintCaretShouldNotLayout)
|
| EXPECT_EQ(startCount, layoutCount());
|
| }
|
|
|
| +TEST_F(FrameSelectionTest, SelectWordAroundPosition)
|
| +{
|
| + RefPtrWillBeRawPtr<Text> text = document().createTextNode("Hello World!");
|
| + document().body()->appendChild(text);
|
| + selection().selectWordAroundPosition(VisiblePosition(Position(text, 5)));
|
| + EXPECT_EQ("Hello", WebString(selection().selectedText()).utf8());
|
| +}
|
| +
|
| }
|
|
|