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

Unified Diff: content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java

Issue 506423003: Adding Select Action Bar Unit test case for input (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nits and review comments. Created 6 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java b/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java
index 8cf30bcab30ce8bba083a273cbb9979d874ac312..ffd4241a1bf6dd1d4a4d4cbaa3e93064e67e37a6 100644
--- a/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java
+++ b/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java
@@ -184,6 +184,29 @@ public class ImeTest extends ContentShellTestBase {
@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 {
commitText(mConnection, "snarful", 1);
waitAndVerifyEditableCallback(mConnection.mImeUpdateQueue, 1, "snarful", 7, 7, -1, -1);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698