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 3857308030c399a5366c91b2d15f82efec4b6eef..a92329bf541944938b166b1faf28152fb04af537 100644 |
--- a/third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp |
+++ b/third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp |
@@ -1408,16 +1408,18 @@ TEST_F(InputMethodControllerTest, |
ASSERT_EQ(1u, GetDocument().Markers().Markers().size()); |
// Verify composition underline shows up on the second line, not the first |
- ASSERT_EQ(0u, GetDocument() |
- .Markers() |
- .MarkersInRange(PlainTextRange(0, 5).CreateRange(*div), |
- DocumentMarker::AllMarkers()) |
- .size()); |
- ASSERT_EQ(1u, GetDocument() |
- .Markers() |
- .MarkersInRange(PlainTextRange(6, 11).CreateRange(*div), |
- DocumentMarker::AllMarkers()) |
- .size()); |
+ ASSERT_FALSE( |
+ GetDocument() |
+ .Markers() |
+ .MarkerAtPosition(PlainTextRange(2).CreateRange(*div).StartPosition(), |
+ DocumentMarker::AllMarkers()) |
+ .has_value()); |
+ ASSERT_TRUE( |
+ GetDocument() |
+ .Markers() |
+ .MarkerAtPosition(PlainTextRange(8).CreateRange(*div).StartPosition(), |
+ DocumentMarker::AllMarkers()) |
+ .has_value()); |
// Verify marker has correct start/end offsets (measured from the beginning |
// of the node, which is the beginning of the line) |