OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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.content.browser.input; | 5 package org.chromium.content_public.browser.input; |
6 | 6 |
7 import android.app.Activity; | 7 import android.app.Activity; |
8 import android.content.ClipData; | 8 import android.content.ClipData; |
9 import android.content.ClipboardManager; | 9 import android.content.ClipboardManager; |
10 import android.content.Context; | 10 import android.content.Context; |
11 import android.test.suitebuilder.annotation.MediumTest; | 11 import android.test.suitebuilder.annotation.MediumTest; |
12 import android.test.suitebuilder.annotation.SmallTest; | 12 import android.test.suitebuilder.annotation.SmallTest; |
13 import android.text.TextUtils; | 13 import android.text.TextUtils; |
14 import android.view.KeyEvent; | 14 import android.view.KeyEvent; |
15 import android.view.View; | 15 import android.view.View; |
16 import android.view.inputmethod.EditorInfo; | 16 import android.view.inputmethod.EditorInfo; |
17 | 17 |
18 import org.chromium.base.ThreadUtils; | 18 import org.chromium.base.ThreadUtils; |
19 import org.chromium.base.test.util.Feature; | 19 import org.chromium.base.test.util.Feature; |
20 import org.chromium.base.test.util.UrlUtils; | 20 import org.chromium.base.test.util.UrlUtils; |
21 import org.chromium.content.browser.ContentView; | 21 import org.chromium.content_public.browser.ContentView; |
22 import org.chromium.content.browser.test.util.Criteria; | 22 import org.chromium.content_public.browser.test.util.Criteria; |
23 import org.chromium.content.browser.test.util.CriteriaHelper; | 23 import org.chromium.content_public.browser.test.util.CriteriaHelper; |
24 import org.chromium.content.browser.test.util.DOMUtils; | 24 import org.chromium.content_public.browser.test.util.DOMUtils; |
25 import org.chromium.content.browser.test.util.TestCallbackHelperContainer; | 25 import org.chromium.content_public.browser.test.util.TestCallbackHelperContainer
; |
26 import org.chromium.content.browser.test.util.TestInputMethodManagerWrapper; | 26 import org.chromium.content_public.browser.test.util.TestInputMethodManagerWrapp
er; |
27 import org.chromium.content_shell_apk.ContentShellTestBase; | 27 import org.chromium.content_shell_apk.ContentShellTestBase; |
28 | 28 |
29 import java.util.ArrayList; | 29 import java.util.ArrayList; |
30 import java.util.concurrent.Callable; | 30 import java.util.concurrent.Callable; |
31 | 31 |
32 /** | 32 /** |
33 * Integration tests for text input using cases based on fixed regressions. | 33 * Integration tests for text input using cases based on fixed regressions. |
34 */ | 34 */ |
35 public class ImeTest extends ContentShellTestBase { | 35 public class ImeTest extends ContentShellTestBase { |
36 | 36 |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 public void assertEqualState(String text, int selectionStart, int select
ionEnd, | 447 public void assertEqualState(String text, int selectionStart, int select
ionEnd, |
448 int compositionStart, int compositionEnd) { | 448 int compositionStart, int compositionEnd) { |
449 assertEquals("Text did not match", text, mText); | 449 assertEquals("Text did not match", text, mText); |
450 assertEquals("Selection start did not match", selectionStart, mSelec
tionStart); | 450 assertEquals("Selection start did not match", selectionStart, mSelec
tionStart); |
451 assertEquals("Selection end did not match", selectionEnd, mSelection
End); | 451 assertEquals("Selection end did not match", selectionEnd, mSelection
End); |
452 assertEquals("Composition start did not match", compositionStart, mC
ompositionStart); | 452 assertEquals("Composition start did not match", compositionStart, mC
ompositionStart); |
453 assertEquals("Composition end did not match", compositionEnd, mCompo
sitionEnd); | 453 assertEquals("Composition end did not match", compositionEnd, mCompo
sitionEnd); |
454 } | 454 } |
455 } | 455 } |
456 } | 456 } |
OLD | NEW |