Commit 1e03a7ec authored by Mitsuru Oshima's avatar Mitsuru Oshima Committed by Ricardo Quesada
Browse files

Wait for each orientation request in ApplicationTest

Orientation change may restart an acivity, so waitForIdleSync
can make the test flaky.

However, we can't use OrientationTestUtils.Observer becasue
global configuration won't happen if the activity is in multi
window mode.

To make the test more reliable and still passes on both
multi-window mode and non multi-window mode, we need
to wait for each orientation request.

Bug: 115551150
Test: ApplicationTest pass
Change-Id: I16398015104ddb068a2a7f8275ea2f1dbaa0b703
parent 0652536b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment