Commit 17e569c9 authored by ajith.v's avatar ajith.v Committed by Commit bot

Added missing test cases related to long pressing on input field.

IME Visibility status check test case is missing when we do long
press on different kind of empty and non-empty input fields. This patch
takes care of adding missing test cases for the same.

BUG=

Review URL: https://codereview.chromium.org/516843005

Cr-Commit-Position: refs/heads/master@{#292423}
parent edde24b3
...@@ -218,6 +218,30 @@ public class ImeTest extends ContentShellTestBase { ...@@ -218,6 +218,30 @@ public class ImeTest extends ContentShellTestBase {
assertWaitForSelectActionBarStatus(false); assertWaitForSelectActionBarStatus(false);
} }
@SmallTest
@Feature({"TextInput"})
public void testImeNotShownOnLongPressingDifferentEmptyInputs() throws Exception {
DOMUtils.focusNode(mContentViewCore, "input_radio");
DOMUtils.longPressNode(this, mContentViewCore, "input_text");
assertWaitForKeyboardStatus(false);
DOMUtils.longPressNode(this, mContentViewCore, "textarea");
assertWaitForKeyboardStatus(false);
}
@SmallTest
@Feature({"TextInput"})
public void testImeStaysOnLongPressingDifferentNonEmptyInputs() throws Exception {
DOMUtils.focusNode(mContentViewCore, "input_text");
assertWaitForKeyboardStatus(true);
commitText(mConnection, "Sample Text", 1);
DOMUtils.focusNode(mContentViewCore, "textarea");
commitText(mConnection, "Sample Text", 1);
DOMUtils.longPressNode(this, mContentViewCore, "input_text");
assertWaitForKeyboardStatus(true);
DOMUtils.longPressNode(this, mContentViewCore, "textarea");
assertWaitForKeyboardStatus(true);
}
@SmallTest @SmallTest
@Feature({"TextInput"}) @Feature({"TextInput"})
public void testImeCut() throws Exception { public void testImeCut() throws Exception {
......
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