Commit 93eddfdc authored by ajith.v's avatar ajith.v Committed by Commit bot

[Android] Add unit tests for SelectActionBar appearance

The SelectActionBar currently lacks test coverage. Add several test
cases covering the appearance of the bar when interacting with an input
field.

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

Cr-Commit-Position: refs/heads/master@{#292247}
parent 049e5cdc
......@@ -182,6 +182,29 @@ public class ImeTest extends ContentShellTestBase {
assertWaitForSelectActionBarStatus(true);
}
@SmallTest
@Feature({"TextInput"})
public void testSelectActionBarClearedOnTappingInput() throws Exception {
commitText(mConnection, "Sample Text", 1);
DOMUtils.longPressNode(this, mContentViewCore, "input_text");
assertWaitForKeyboardStatus(true);
assertWaitForSelectActionBarStatus(true);
DOMUtils.clickNode(this, mContentViewCore, "input_text");
assertWaitForSelectActionBarStatus(false);
}
@SmallTest
@Feature({"TextInput"})
public void testSelectActionBarClearedOnTappingOutsideInput() throws Exception {
commitText(mConnection, "Sample Text", 1);
DOMUtils.longPressNode(this, mContentViewCore, "input_text");
assertWaitForKeyboardStatus(true);
assertWaitForSelectActionBarStatus(true);
DOMUtils.clickNode(this, mContentViewCore, "input_radio");
assertWaitForKeyboardStatus(false);
assertWaitForSelectActionBarStatus(false);
}
@SmallTest
@Feature({"TextInput"})
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