ImeTest#testPasteLongText is flaky on low end devices |
||||
Issue description
ImeTest#testPasteLongText is flaky on low end devices, though not flaky on trybot so far.
Device: Android One, Android 5.1.1
Failure rate: 5/20
C 24.111s Main [FAIL] org.chromium.content.browser.input.ImeTest#testPasteLongText with {--enable-features=ImeThread}:
C 24.111s Main junit.framework.AssertionFailedError: Criteria not met in allotted time.
C 24.112s Main at org.chromium.content.browser.test.util.CriteriaHelper.pollInstrumentationThread(CriteriaHelper.java:74)
C 24.112s Main at org.chromium.content.browser.test.util.CriteriaHelper.pollUiThread(CriteriaHelper.java:112)
C 24.112s Main at org.chromium.content.browser.test.util.CriteriaHelper.pollUiThread(CriteriaHelper.java:133)
C 24.112s Main at org.chromium.content.browser.input.ImeTest.waitAndVerifyUpdateSelection(ImeTest.java:1654)
C 24.112s Main at org.chromium.content.browser.input.ImeTest.testPasteLongText(ImeTest.java:829)
C 24.112s Main at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214)
C 24.112s Main at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199)
C 24.112s Main at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192)
C 24.112s Main at org.chromium.content_shell_apk.ContentShellTestBase.runTest(ContentShellTestBase.java:233)
C 24.112s Main at org.chromium.base.test.BaseTestResult.runParameterized(BaseTestResult.java:161)
C 24.112s Main at org.chromium.base.test.BaseTestResult.run(BaseTestResult.java:124)
C 24.112s Main at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)
C 24.112s Main at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)
C 24.113s Main at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555)
C 24.113s Main at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1853)
After copying very long text on a low end device, it takes a long time to update the selection. However, the DEFAULT_MAX_TIME_TO_POLL of CriteriaHelper is only 3 seconds, which is not long enough in this case.
,
Oct 31 2016
,
Dec 22 2016
This test is flaky again, for the same reason. The failure rate on Nexus 9 is ~3/10. In normal cases, it takes ~2 seconds to update selection after pasting. But sometimes it may takes more than 3 seconds (DEFAULT_MAX_TIME_TO_POLL = 3 seconds). Since IME thread is fully landed, we don't need this test anymore.
,
Dec 22 2016
Typo: should be "The failure rate on Nexus [5] is ~3/10"
,
Dec 22 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/c4f371e1758fd6c34827e571064b93f319ae312e commit c4f371e1758fd6c34827e571064b93f319ae312e Author: yabinh <yabinh@chromium.org> Date: Thu Dec 22 07:49:04 2016 Remove obsolete and flaky ImeTest#testPasteLongText The purpose of ImeTest#testPasteLongText is to show that Chrome can crash if IME thread is not enabled. Since IME thread is landed, we don't need the test any more. Besides, the test is flaky on low end device because it takes too much time to paste long text. BUG= 660312 Review-Url: https://codereview.chromium.org/2594333002 Cr-Commit-Position: refs/heads/master@{#440357} [modify] https://crrev.com/c4f371e1758fd6c34827e571064b93f319ae312e/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java
,
Dec 22 2016
|
||||
►
Sign in to add a comment |
||||
Comment 1 by bugdroid1@chromium.org
, Oct 28 2016