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

Unified Diff: third_party/WebKit/Source/core/editing/commands/InsertListCommandTest.cpp

Issue 2579253002: [EditCommandSource] Pass source to |CompositEditCommand| and |TypingCommand| (3/3) (Closed)
Patch Set: Created 4 years 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/commands/InsertListCommandTest.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/InsertListCommandTest.cpp b/third_party/WebKit/Source/core/editing/commands/InsertListCommandTest.cpp
index c7792716460e99c1df5e1960c61fa3bcb5800c86..bea2af380f1e7e4581027b3db3d25934c613dbca 100644
--- a/third_party/WebKit/Source/core/editing/commands/InsertListCommandTest.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/InsertListCommandTest.cpp
@@ -42,7 +42,7 @@ TEST_F(InsertListCommandTest, ShouldCleanlyRemoveSpuriousTextNode) {
InsertListCommand* command =
InsertListCommand::create(document(), InsertListCommand::OrderedList);
// This should not DCHECK.
- EXPECT_TRUE(command->apply())
+ EXPECT_TRUE(command->apply(EditCommandSource::kMenuOrKeyBinding))
<< "The insert ordered list command should have succeeded";
EXPECT_EQ("<ol><li>d</li></ol>", document().body()->innerHTML());
}

Powered by Google App Engine
This is Rietveld 408576698