New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 621046 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Aug 2016
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 1
Type: Bug



Sign in to add a comment

org.chromium.content.browser.input.ImeTest#testPasteLongText fails on Android Tests (dbg)

Project Member Reported by grunell@chromium.org, Jun 17 2016

Issue description

Example build: https://build.chromium.org/p/chromium.linux/builders/Android%20Tests%20%28dbg%29/builds/34892

C  183.240s Main  [FAIL] org.chromium.content.browser.input.ImeTest#testPasteLongText:
C  183.240s Main  junit.framework.AssertionFailedError: expected:<25000> but was:<16>
C  183.240s Main  	at org.chromium.content.browser.input.ImeTest.waitAndVerifyUpdateSelection(ImeTest.java:1386)
C  183.240s Main  	at org.chromium.content.browser.input.ImeTest.testPasteLongText(ImeTest.java:654)
C  183.240s Main  	at java.lang.reflect.Method.invokeNative(Native Method)
C  183.240s Main  	at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214)
C  183.240s Main  	at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199)
C  183.240s Main  	at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192)
C  183.240s Main  	at org.chromium.content_shell_apk.ContentShellTestBase.runTest(ContentShellTestBase.java:233)
C  183.240s Main  	at org.chromium.base.test.BaseTestResult.runParameterized(BaseTestResult.java:161)
C  183.240s Main  	at org.chromium.base.test.BaseTestResult.run(BaseTestResult.java:124)
C  183.240s Main  	at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)
C  183.240s Main  	at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)
C  183.240s Main  	at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:554)
C  183.240s Main  	at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1701)
C
 
Project Member

Comment 1 by bugdroid1@chromium.org, Jun 17 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/d206560d6af7e0354a95464106157ebcad98a866

commit d206560d6af7e0354a95464106157ebcad98a866
Author: grunell <grunell@chromium.org>
Date: Fri Jun 17 11:36:01 2016

Disabling org.chromium.content.browser.input.ImeTest#testPasteLongText.

Fails, likely flakily.

BUG= 621046 
TBR=yabinh@chromium.org

Review-Url: https://codereview.chromium.org/2077903002
Cr-Commit-Position: refs/heads/master@{#400414}

[modify] https://crrev.com/d206560d6af7e0354a95464106157ebcad98a866/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java

Comment 2 by yabinh@chromium.org, Jul 21 2016

This bug is reproducible on Nexus 9(Android 5.0). A way to reproduce it is to run ImeTest#testImePaste first, then run ImeTest#testPasteLongText.
Project Member

Comment 3 by bugdroid1@chromium.org, Jul 21 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/bd5c4f7c8cfcee76a9212c1c8ab975ea8e81c81b

commit bd5c4f7c8cfcee76a9212c1c8ab975ea8e81c81b
Author: yabinh <yabinh@chromium.org>
Date: Thu Jul 21 07:57:15 2016

Fix flaky content.browser.input.ImeTest#testPasteLongText.

ImeTest#copy() is an asynchronous method. After calling it, we should
wait for the clipboard get updated. Otherwise, we may paste the text
from other tests (like ImeTest#testImePaste) when we call ImeTest#paste().

Before applying this patch, the failure rate is ~12/40 . After that, it
decreases to 0/1000+.

BUG= 621046 

Review-Url: https://codereview.chromium.org/2170753002
Cr-Commit-Position: refs/heads/master@{#406801}

[modify] https://crrev.com/bd5c4f7c8cfcee76a9212c1c8ab975ea8e81c81b/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java

Status: Fixed (was: Assigned)

Sign in to add a comment