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

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

Issue 2574793002: [Editing] Store |CommandSource| in |CompositeEditCommand| (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/ApplyBlockElementCommandTest.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommandTest.cpp b/third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommandTest.cpp
index cd06bf1b9df21a2f69961c1c17857b7a5021ba1e..2aa25db9dac0b31e1f68d24041b55c3996b13cbf 100644
--- a/third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommandTest.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommandTest.cpp
@@ -44,8 +44,8 @@ TEST_F(ApplyBlockElementCommandTest, selectionCrossingOverBody) {
Position(document().getElementById("va")->firstChild(), 2))
.build());
- FormatBlockCommand* command =
- FormatBlockCommand::create(document(), HTMLNames::footerTag);
+ FormatBlockCommand* command = FormatBlockCommand::create(
+ document(), CommandSource::MenuOrKeyBinding, HTMLNames::footerTag);
command->apply();
EXPECT_EQ(
@@ -69,7 +69,8 @@ TEST_F(ApplyBlockElementCommandTest, visibilityChangeDuringCommand) {
.build());
IndentOutdentCommand* command =
- IndentOutdentCommand::create(document(), IndentOutdentCommand::Indent);
+ IndentOutdentCommand::create(document(), CommandSource::MenuOrKeyBinding,
+ IndentOutdentCommand::Indent);
command->apply();
EXPECT_EQ(

Powered by Google App Engine
This is Rietveld 408576698