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

Unified Diff: third_party/WebKit/Source/web/tests/KeyboardTest.cpp

Issue 1942683004: Ctrl/Alt+Enter shouldn't insert newline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Yosin's review Created 4 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
« no previous file with comments | « third_party/WebKit/Source/core/editing/EditingBehavior.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/tests/KeyboardTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/KeyboardTest.cpp b/third_party/WebKit/Source/web/tests/KeyboardTest.cpp
index 7d2c638b6555463306d9e2bdda6199dc65e5097d..d5275e0c814a5786ae6ae94f6379e4c875ac2a3c 100644
--- a/third_party/WebKit/Source/web/tests/KeyboardTest.cpp
+++ b/third_party/WebKit/Source/web/tests/KeyboardTest.cpp
@@ -185,26 +185,9 @@ TEST_F(KeyboardTest, TestInsertNewline)
EXPECT_STREQ("InsertNewline", interpretNewLine(noModifiers));
}
-TEST_F(KeyboardTest, TestInsertNewline2)
-{
- EXPECT_STREQ("InsertNewline", interpretNewLine(WebInputEvent::ControlKey));
-}
-
TEST_F(KeyboardTest, TestInsertLineBreak)
{
EXPECT_STREQ("InsertLineBreak", interpretNewLine(WebInputEvent::ShiftKey));
}
-TEST_F(KeyboardTest, TestInsertNewline3)
-{
- EXPECT_STREQ("InsertNewline", interpretNewLine(WebInputEvent::AltKey));
-}
-
-TEST_F(KeyboardTest, TestInsertNewline4)
-{
- int modifiers = WebInputEvent::AltKey | WebInputEvent::ShiftKey;
- const char* result = interpretNewLine(modifiers);
- EXPECT_STREQ("InsertNewline", result);
-}
-
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/editing/EditingBehavior.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698