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

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

Issue 2847663002: Don't show touch handles when selection hidden (Closed)
Patch Set: added old test back Created 3 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.browser.input;
6 6
7 import android.content.ClipData; 7 import android.content.ClipData;
8 import android.content.ClipboardManager; 8 import android.content.ClipboardManager;
9 import android.content.Context; 9 import android.content.Context;
10 import android.content.res.Configuration; 10 import android.content.res.Configuration;
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 @SmallTest 689 @SmallTest
690 @Feature({"TextInput"}) 690 @Feature({"TextInput"})
691 public void testSelectActionBarClearedOnTappingOutsideInput() throws Excepti on { 691 public void testSelectActionBarClearedOnTappingOutsideInput() throws Excepti on {
692 mRule.commitText("Sample Text", 1); 692 mRule.commitText("Sample Text", 1);
693 DOMUtils.longPressNode(mRule.getContentViewCore(), "input_text"); 693 DOMUtils.longPressNode(mRule.getContentViewCore(), "input_text");
694 mRule.assertWaitForKeyboardStatus(true); 694 mRule.assertWaitForKeyboardStatus(true);
695 mRule.assertWaitForSelectActionBarStatus(true); 695 mRule.assertWaitForSelectActionBarStatus(true);
696 DOMUtils.clickNode(mRule.getContentViewCore(), "plain_text"); 696 DOMUtils.clickNode(mRule.getContentViewCore(), "plain_text");
697 mRule.assertWaitForKeyboardStatus(false); 697 mRule.assertWaitForKeyboardStatus(false);
698 mRule.assertWaitForSelectActionBarStatus(false); 698 mRule.assertWaitForSelectActionBarStatus(false);
699
700 DOMUtils.longPressNode(mRule.getContentViewCore(), "input_text");
701 mRule.assertWaitForKeyboardStatus(true);
702 mRule.assertWaitForSelectActionBarStatus(true);
703 DOMUtils.clickNode(mRule.getContentViewCore(), "input_radio");
704 mRule.assertWaitForKeyboardStatus(false);
705 mRule.assertWaitForSelectActionBarStatus(false);
699 } 706 }
700 707
701 @Test 708 @Test
702 @SmallTest 709 @SmallTest
703 @Feature({"TextInput"}) 710 @Feature({"TextInput"})
704 public void testImeNotShownOnLongPressingDifferentEmptyInputs() throws Excep tion { 711 public void testImeNotShownOnLongPressingDifferentEmptyInputs() throws Excep tion {
705 DOMUtils.focusNode(mRule.getWebContents(), "input_radio"); 712 DOMUtils.focusNode(mRule.getWebContents(), "input_radio");
706 DOMUtils.longPressNode(mRule.getContentViewCore(), "input_text"); 713 DOMUtils.longPressNode(mRule.getContentViewCore(), "input_text");
707 mRule.assertWaitForKeyboardStatus(false); 714 mRule.assertWaitForKeyboardStatus(false);
708 DOMUtils.longPressNode(mRule.getContentViewCore(), "textarea"); 715 DOMUtils.longPressNode(mRule.getContentViewCore(), "textarea");
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after
1495 }); 1502 });
1496 Assert.assertEquals("abc", mRule.runBlockingOnImeThread(new Callable<Cha rSequence>() { 1503 Assert.assertEquals("abc", mRule.runBlockingOnImeThread(new Callable<Cha rSequence>() {
1497 @Override 1504 @Override
1498 public CharSequence call() throws Exception { 1505 public CharSequence call() throws Exception {
1499 return connection.getTextBeforeCursor(5, 0); 1506 return connection.getTextBeforeCursor(5, 0);
1500 } 1507 }
1501 })); 1508 }));
1502 } 1509 }
1503 1510
1504 } 1511 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698