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

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

Issue 2370663002: Remove logic to reset input method more than needed (Closed)
Patch Set: fix test, fix IMC Created 3 years, 11 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/web/tests/WebViewTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebViewTest.cpp b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
index 7929d8fa3fbaa57806c46da6e1ada59c298b7280..cd1804664182ccc14c9d7d16571eedb1aeaa04f7 100644
--- a/third_party/WebKit/Source/web/tests/WebViewTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
@@ -1587,8 +1587,9 @@ TEST_P(WebViewTest, SetEditableSelectionOffsetsKeepsComposition) {
EXPECT_EQ("hello world", std::string(info.value.utf8().data()));
EXPECT_EQ(2, info.selectionStart);
EXPECT_EQ(2, info.selectionEnd);
- EXPECT_EQ(-1, info.compositionStart);
- EXPECT_EQ(-1, info.compositionEnd);
+ // Composition range should be reset by browser process or keyboard apps.
+ EXPECT_EQ(6, info.compositionStart);
+ EXPECT_EQ(11, info.compositionEnd);
}
TEST_P(WebViewTest, IsSelectionAnchorFirst) {

Powered by Google App Engine
This is Rietveld 408576698