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

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

Issue 2919173002: Add DocumentMarker::kActiveSuggestion MarkerType (Closed)
Patch Set: Fix build errors Created 3 years, 7 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/CompositionMarkerTest.cpp
diff --git a/third_party/WebKit/Source/core/editing/markers/CompositionMarkerTest.cpp b/third_party/WebKit/Source/core/editing/markers/CompositionMarkerTest.cpp
index 3db1f7ebd699ff6512ea7a232a377460cc2ea8a3..00b18024897b642cd5fc2b5248ca9233d5a04c65 100644
--- a/third_party/WebKit/Source/core/editing/markers/CompositionMarkerTest.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/CompositionMarkerTest.cpp
@@ -17,6 +17,13 @@ TEST_F(CompositionMarkerTest, MarkerType) {
EXPECT_EQ(DocumentMarker::kComposition, marker->GetType());
}
+TEST_F(CompositionMarkerTest, IsMarkerWithFormatting) {
+ DocumentMarker* marker = new CompositionMarker(
+ 0, 1, Color::kTransparent, CompositionMarker::Thickness::kThin,
+ Color::kTransparent);
+ EXPECT_TRUE(IsMarkerWithFormatting(*marker));
+}
+
TEST_F(CompositionMarkerTest, ConstructorAndGetters) {
CompositionMarker* marker =
new CompositionMarker(0, 1, Color::kDarkGray,

Powered by Google App Engine
This is Rietveld 408576698