| Index: third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp b/third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp
|
| index 7fd6d56e8d3aa4bad2047593616a2c9cde59ab99..e318758fc80e2fb259991beb16498603caa9cda1 100644
|
| --- a/third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp
|
| @@ -1964,4 +1964,18 @@ TEST_F(InputMethodControllerTest, Marker_InsertBetweenMarkers) {
|
| EXPECT_EQ(25u, GetDocument().Markers().Markers()[2]->EndOffset());
|
| }
|
|
|
| +// For http://crbug.com/712761
|
| +TEST_F(InputMethodControllerTest, TextInputTypeAtBeforeEditable) {
|
| + GetDocument().body()->setContentEditable("true", ASSERT_NO_EXCEPTION);
|
| + GetDocument().body()->focus();
|
| +
|
| + // Set selection before BODY(editable).
|
| + GetFrame().Selection().SetSelection(
|
| + SelectionInDOMTree::Builder()
|
| + .Collapse(Position(GetDocument().documentElement(), 0))
|
| + .Build());
|
| +
|
| + EXPECT_EQ(kWebTextInputTypeContentEditable, Controller().TextInputType());
|
| +}
|
| +
|
| } // namespace blink
|
|
|