Commit ebc1d8cf authored by Xiaocheng Hu's avatar Xiaocheng Hu Committed by Commit Bot

Move EditingCommandTest.cpp to editing/commands

Bug: 761254
Change-Id: I6d85d36bd47b845da8e904f2c2f0999f8b958a70
Reviewed-on: https://chromium-review.googlesource.com/777591Reviewed-by: default avatarYoshifumi Inoue <yosin@chromium.org>
Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#517771}
parent 3b4c8d53
...@@ -315,7 +315,6 @@ blink_core_sources("editing") { ...@@ -315,7 +315,6 @@ blink_core_sources("editing") {
jumbo_source_set("unit_tests") { jumbo_source_set("unit_tests") {
testonly = true testonly = true
sources = [ sources = [
"EditingCommandTest.cpp",
"EditingStrategyTest.cpp", "EditingStrategyTest.cpp",
"EditingStyleTest.cpp", "EditingStyleTest.cpp",
"EditingUtilitiesTest.cpp", "EditingUtilitiesTest.cpp",
...@@ -343,6 +342,7 @@ jumbo_source_set("unit_tests") { ...@@ -343,6 +342,7 @@ jumbo_source_set("unit_tests") {
"commands/ApplyStyleCommandTest.cpp", "commands/ApplyStyleCommandTest.cpp",
"commands/CompositeEditCommandTest.cpp", "commands/CompositeEditCommandTest.cpp",
"commands/DeleteSelectionCommandTest.cpp", "commands/DeleteSelectionCommandTest.cpp",
"commands/EditingCommandTest.cpp",
"commands/InsertIncrementalTextCommandTest.cpp", "commands/InsertIncrementalTextCommandTest.cpp",
"commands/InsertListCommandTest.cpp", "commands/InsertListCommandTest.cpp",
"commands/InsertTextCommandTest.cpp", "commands/InsertTextCommandTest.cpp",
......
...@@ -34,11 +34,12 @@ static_assert( ...@@ -34,11 +34,12 @@ static_assert(
class EditingCommandTest : public EditingTestBase {}; class EditingCommandTest : public EditingTestBase {};
TEST_F(EditingCommandTest, EditorCommandOrder) { TEST_F(EditingCommandTest, EditorCommandOrder) {
for (size_t i = 1; i < arraysize(kCommandNameEntries); ++i) for (size_t i = 1; i < arraysize(kCommandNameEntries); ++i) {
EXPECT_GT(0, strcasecmp(kCommandNameEntries[i - 1].name, EXPECT_GT(0, strcasecmp(kCommandNameEntries[i - 1].name,
kCommandNameEntries[i].name)) kCommandNameEntries[i].name))
<< "EDITOR_COMMAND_MAP must be case-folding ordered. Incorrect index:" << "EDITOR_COMMAND_MAP must be case-folding ordered. Incorrect index:"
<< i; << i;
}
} }
TEST_F(EditingCommandTest, CreateCommandFromString) { TEST_F(EditingCommandTest, CreateCommandFromString) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment