Reduce the size increase for the ExpandPipOnPinchOpenTest

Previously the test would resize above the max allowed size, which in
turn would make the auto resize logic bring it back to maximum allowed
size.

In such cases the PiP would increase at first, but then would shrink to
fit on the screen, causing the test to fail.

Change-Id: Ieb96d4ba2b607a3e2b9821f13e909acaaf6d31c3
Test: atest WMShellFlickerTests:ExpandPipOnPinchOpenTest
Bug: 275292932
This commit is contained in:
Mateusz Cicheński
2023-04-04 04:58:17 +00:00
parent dd5ef9a6d0
commit 8973dcef3d

View File

@@ -36,7 +36,7 @@ import org.junit.runners.Parameterized
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
open class ExpandPipOnPinchOpenTest(flicker: FlickerTest) : PipTransition(flicker) {
override val transition: FlickerBuilder.() -> Unit
get() = buildTransition { transitions { pipApp.pinchOpenPipWindow(wmHelper, 0.4f, 30) } }
get() = buildTransition { transitions { pipApp.pinchOpenPipWindow(wmHelper, 0.25f, 30) } }
/** Checks that the visible region area of [pipApp] always increases during the animation. */
@Presubmit