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

Unified Diff: third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp

Issue 2611813002: Add support for persisting CompositionUnderlines in InputMethodController (Closed)
Patch Set: Try one more time Created 3 years, 12 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/markers/DocumentMarkerControllerTest.cpp
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp
index dbe81bb71c0244e927c9077b016d1aa6195ef708..87ac73f33c03c5a4cda422266bcbd4f333e23375 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp
@@ -84,7 +84,7 @@ void DocumentMarkerControllerTest::markNodeContentsWithComposition(Node* node) {
auto range = EphemeralRange::rangeOfContents(*node);
markerController().addCompositionMarker(range.startPosition(),
range.endPosition(), Color::black,
- false, Color::black);
+ false, Color::black, false);
}
void DocumentMarkerControllerTest::setBodyInnerHTML(const char* bodyContent) {
@@ -232,9 +232,11 @@ TEST_F(DocumentMarkerControllerTest, CompositionMarkersNotMerged) {
Node* text = document().body()->firstChild()->firstChild();
document().updateStyleAndLayout();
markerController().addCompositionMarker(Position(text, 0), Position(text, 1),
- Color::black, false, Color::black);
+ Color::black, false, Color::black,
+ false);
markerController().addCompositionMarker(Position(text, 1), Position(text, 3),
- Color::black, true, Color::black);
+ Color::black, true, Color::black,
+ false);
EXPECT_EQ(2u, markerController().markers().size());
}

Powered by Google App Engine
This is Rietveld 408576698