Commit 06d12557 authored by bcwhite's avatar bcwhite Committed by Commit bot

Fixed flaky test.

It appears to be an issue with the "textarea" not always getting focus
before the "commitText()" call is made.  A tiny delay to let everything
settle seems to fix the issue.

BUG=477632
TBR=bcwhite

Review URL: https://codereview.chromium.org/1104293007

Cr-Commit-Position: refs/heads/master@{#327577}
parent bcb22573
...@@ -324,17 +324,14 @@ public class ImeTest extends ContentShellTestBase { ...@@ -324,17 +324,14 @@ public class ImeTest extends ContentShellTestBase {
assertWaitForKeyboardStatus(true); assertWaitForKeyboardStatus(true);
} }
/*
@SmallTest @SmallTest
@Feature({"TextInput", "Main"}) @Feature({"TextInput", "Main"})
http://crbug.com/477632
*/
@DisabledTest
public void testFinishComposingText() throws Throwable { public void testFinishComposingText() throws Throwable {
DOMUtils.focusNode(mWebContents, "input_radio"); DOMUtils.focusNode(mWebContents, "input_radio");
assertWaitForKeyboardStatus(false); assertWaitForKeyboardStatus(false);
DOMUtils.focusNode(mWebContents, "textarea"); DOMUtils.focusNode(mWebContents, "textarea");
assertWaitForKeyboardStatus(true); assertWaitForKeyboardStatus(true);
Thread.sleep(50);
mConnection = (TestAdapterInputConnection) getAdapterInputConnection(); mConnection = (TestAdapterInputConnection) getAdapterInputConnection();
waitAndVerifyEditableCallback(mConnection.mImeUpdateQueue, 0, "", 0, 0, -1, -1); waitAndVerifyEditableCallback(mConnection.mImeUpdateQueue, 0, "", 0, 0, -1, -1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment