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

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: Refined the test case to handle Keyboard status as well. 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..41e46252015a4ef634ccd4a038aac546f6c0dc67 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 testSelectActionBarClearOnTappingInput() throws Exception {
jdduke (slow) 2014/08/27 18:07:12 Nit: "ActionBarCleared" instead of "ActionBarClear
AKVT 2014/08/27 18:19:41 Done.
+ commitText(mConnection, "Sample Text", 1);
jdduke (slow) 2014/08/27 18:07:12 These tests aren't really IME-specific. What if w
AKVT 2014/08/27 18:19:40 Thanks jdduke for the suggestion. Actually I have
+ DOMUtils.longPressNode(this, mContentViewCore, "input_text");
+ assertWaitForKeyboardStatus(true);
+ assertWaitForSelectActionBarStatus(true);
+ DOMUtils.clickNode(this, mContentViewCore, "input_text");
+ assertWaitForSelectActionBarStatus(false);
+ }
+
+ @SmallTest
+ @Feature({"TextInput"})
+ public void testSelectActionBarClearOnTappingOutsideInput() 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