OLD | NEW |
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 Loading... |
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(); |
| 151 } |
137 } | 152 } |
OLD | NEW |