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

Side by Side Diff: android_webview/javatests/src/org/chromium/android_webview/test/AwImeTest.java

Issue 2290133002: Make WebView keep keyboard when losing focus (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.android_webview.test; 5 package org.chromium.android_webview.test;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.test.suitebuilder.annotation.SmallTest; 8 import android.test.suitebuilder.annotation.SmallTest;
9 import android.view.inputmethod.InputConnection; 9 import android.view.inputmethod.InputConnection;
10 import android.view.inputmethod.InputMethodManager; 10 import android.view.inputmethod.InputMethodManager;
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 */ 127 */
128 // https://crbug.com/569556 128 // https://crbug.com/569556
129 @SmallTest 129 @SmallTest
130 @Feature({"AndroidWebView", "TextInput"}) 130 @Feature({"AndroidWebView", "TextInput"})
131 public void testPressNextFromEditTextAndType() throws Throwable { 131 public void testPressNextFromEditTextAndType() throws Throwable {
132 loadContentEditableBody(); 132 loadContentEditableBody();
133 focusOnEditTextAndShowKeyboard(); 133 focusOnEditTextAndShowKeyboard();
134 focusOnWebViewAndEnableEditing(); 134 focusOnWebViewAndEnableEditing();
135 waitForNonNullInputConnection(); 135 waitForNonNullInputConnection();
136 } 136 }
137
138 /**
139 * Tests that moving from WebView to EditText keeps the keyboard showing.
140 */
141 // https://crbug.com/636237
142 @SmallTest
143 @Feature({"AndroidWebView", "TextInput"})
144 public void testMoveFromWebViewtoEditText() throws Throwable {
145 loadContentEditableBody();
146 focusOnWebViewAndEnableEditing();
147 waitForNonNullInputConnection();
148
149 focusOnEditTextAndShowKeyboard();
150 waitForNonNullInputConnection();
Changwan Ryu 2016/10/19 05:10:21 Is this really testing something? Does this test f
yabinh 2016/10/24 01:40:57 Yes. If will fail if we keep the old logic. As we
151 }
137 } 152 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698