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

Issue 651704 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Oct 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

ImeTest#testGetCursorCapsMode is flaky

Project Member Reported by changwan@chromium.org, Sep 30 2016

Issue description

This is flakier than other tests, and is flaky only when enable-features=ImeThread is applied.

Definitely needs some attention.

I  177.025s run_tests_on_device(03d27c84006adbbb)    Failure in testGetCursorCapsMode:
I  177.025s run_tests_on_device(03d27c84006adbbb)    junit.framework.AssertionFailedError: expected:<8192> but was:<0>
I  177.025s run_tests_on_device(03d27c84006adbbb)    	at org.chromium.content.browser.input.ImeTest.testGetCursorCapsMode(ImeTest.java:1411)
I  177.025s run_tests_on_device(03d27c84006adbbb)    	at java.lang.reflect.Method.invokeNative(Native Method)
I  177.025s run_tests_on_device(03d27c84006adbbb)    	at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214)
I  177.025s run_tests_on_device(03d27c84006adbbb)    	at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199)
I  177.025s run_tests_on_device(03d27c84006adbbb)    	at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192)
I  177.025s run_tests_on_device(03d27c84006adbbb)    	at org.chromium.content_shell_apk.ContentShellTestBase.runTest(ContentShellTestBase.java:233)
I  177.025s run_tests_on_device(03d27c84006adbbb)    	at org.chromium.base.test.BaseTestResult.runParameterized(BaseTestResult.java:161)
I  177.025s run_tests_on_device(03d27c84006adbbb)    	at org.chromium.base.test.BaseTestResult.run(BaseTestResult.java:124)
I  177.025s run_tests_on_device(03d27c84006adbbb)    	at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)
I  177.025s run_tests_on_device(03d27c84006adbbb)    	at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)
I  177.025s run_tests_on_device(03d27c84006adbbb)    	at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:554)
I  177.025s run_tests_on_device(03d27c84006adbbb)    	at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1701)
I  177.025s run_tests_on_device(03d27c84006adbbb)    
 

Comment 1 by yabinh@chromium.org, Oct 26 2016

Owner: yabinh@chromium.org
Project Member

Comment 2 by bugdroid1@chromium.org, Oct 27 2016

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

commit 7569ed80092216c303fb3838167583626c6ef03d
Author: yabinh <yabinh@chromium.org>
Date: Thu Oct 27 06:39:58 2016

Fix flaky ImeTest#testGetCursorCapsMode

In ImeTest#testGetCursorCapsMode, when enter key is pressed on inputbox on
a phone, a blank tab will be opened. This isn't needed, and it causes flakiness.
We can avoid that by using textarea instead.

BUG= 651704 

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

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

Comment 3 by yabinh@chromium.org, Oct 31 2016

Status: Fixed (was: Assigned)

Sign in to add a comment