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

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

Issue 2616623002: Do not send redundant selectionchange-events (decouple focus) (Closed)
Patch Set: Get Document from selection Created 3 years, 9 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
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 8f091650ecea98e254a474921d934e90c8c5927d..297267065c14a50a39c7abd7f3028f9024afd606 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
@@ -785,7 +785,7 @@ public class ImeTest extends ContentShellTestBase {
DOMUtils.longPressNode(mContentViewCore, "input_text");
assertWaitForKeyboardStatus(true);
assertWaitForSelectActionBarStatus(true);
- DOMUtils.clickNode(mContentViewCore, "input_radio");
+ DOMUtils.clickNode(mContentViewCore, "plain_text");
assertWaitForKeyboardStatus(false);
assertWaitForSelectActionBarStatus(false);
}
@@ -1317,7 +1317,7 @@ public class ImeTest extends ContentShellTestBase {
@Feature({"TextInput"})
public void testContentEditableEvents_ComposingText() throws Throwable {
focusElementAndWaitForStateUpdate("contenteditable_event");
- waitForEventLogs("selectionchange,selectionchange");
+ waitForEventLogs("selectionchange");
clearEventLogs();
setComposingText("a", 1);
@@ -1352,7 +1352,7 @@ public class ImeTest extends ContentShellTestBase {
@Feature({"TextInput"})
public void testContentEditableEvents_CommitText() throws Throwable {
focusElementAndWaitForStateUpdate("contenteditable_event");
- waitForEventLogs("selectionchange,selectionchange");
+ waitForEventLogs("selectionchange");
clearEventLogs();
commitText("a", 1);
@@ -1374,7 +1374,7 @@ public class ImeTest extends ContentShellTestBase {
@Feature({"TextInput"})
public void testContentEditableEvents_DeleteSurroundingText() throws Throwable {
focusElementAndWaitForStateUpdate("contenteditable_event");
- waitForEventLogs("selectionchange,selectionchange");
+ waitForEventLogs("selectionchange");
clearEventLogs();
commitText("hello", 1);
@@ -1416,7 +1416,7 @@ public class ImeTest extends ContentShellTestBase {
@Feature({"TextInput"})
public void testContentEditableEvents_DeleteSurroundingTextInCodePoints() throws Throwable {
focusElementAndWaitForStateUpdate("contenteditable_event");
- waitForEventLogs("selectionchange,selectionchange");
+ waitForEventLogs("selectionchange");
clearEventLogs();
commitText("hello", 1);

Powered by Google App Engine
This is Rietveld 408576698