Merge "Introduce a subject to assert changes over rectangles" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
edd2a68464
@@ -73,7 +73,8 @@ fun FlickerTestParameter.dockedStackDividerIsInvisible() {
|
|||||||
fun FlickerTestParameter.appPairsPrimaryBoundsIsVisible(rotation: Int, primaryLayerName: String) {
|
fun FlickerTestParameter.appPairsPrimaryBoundsIsVisible(rotation: Int, primaryLayerName: String) {
|
||||||
assertLayersEnd {
|
assertLayersEnd {
|
||||||
val dividerRegion = entry.getVisibleBounds(APP_PAIR_SPLIT_DIVIDER)
|
val dividerRegion = entry.getVisibleBounds(APP_PAIR_SPLIT_DIVIDER)
|
||||||
this.coversExactly(getPrimaryRegion(dividerRegion, rotation), primaryLayerName)
|
visibleRegion(primaryLayerName)
|
||||||
|
.coversExactly(getPrimaryRegion(dividerRegion, rotation))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -83,7 +84,8 @@ fun FlickerTestParameter.dockedStackPrimaryBoundsIsVisible(
|
|||||||
) {
|
) {
|
||||||
assertLayersEnd {
|
assertLayersEnd {
|
||||||
val dividerRegion = entry.getVisibleBounds(DOCKED_STACK_DIVIDER)
|
val dividerRegion = entry.getVisibleBounds(DOCKED_STACK_DIVIDER)
|
||||||
this.coversExactly(getPrimaryRegion(dividerRegion, rotation), primaryLayerName)
|
visibleRegion(primaryLayerName)
|
||||||
|
.coversExactly(getPrimaryRegion(dividerRegion, rotation))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -93,7 +95,8 @@ fun FlickerTestParameter.appPairsSecondaryBoundsIsVisible(
|
|||||||
) {
|
) {
|
||||||
assertLayersEnd {
|
assertLayersEnd {
|
||||||
val dividerRegion = entry.getVisibleBounds(APP_PAIR_SPLIT_DIVIDER)
|
val dividerRegion = entry.getVisibleBounds(APP_PAIR_SPLIT_DIVIDER)
|
||||||
this.coversExactly(getSecondaryRegion(dividerRegion, rotation), secondaryLayerName)
|
visibleRegion(secondaryLayerName)
|
||||||
|
.coversExactly(getSecondaryRegion(dividerRegion, rotation))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -103,7 +106,8 @@ fun FlickerTestParameter.dockedStackSecondaryBoundsIsVisible(
|
|||||||
) {
|
) {
|
||||||
assertLayersEnd {
|
assertLayersEnd {
|
||||||
val dividerRegion = entry.getVisibleBounds(DOCKED_STACK_DIVIDER)
|
val dividerRegion = entry.getVisibleBounds(DOCKED_STACK_DIVIDER)
|
||||||
this.coversExactly(getSecondaryRegion(dividerRegion, rotation), secondaryLayerName)
|
visibleRegion(secondaryLayerName)
|
||||||
|
.coversExactly(getSecondaryRegion(dividerRegion, rotation))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -82,10 +82,10 @@ class AppPairsTestPairPrimaryAndSecondaryApps(
|
|||||||
fun appsEndingBounds() {
|
fun appsEndingBounds() {
|
||||||
testSpec.assertLayersEnd {
|
testSpec.assertLayersEnd {
|
||||||
val dividerRegion = entry.getVisibleBounds(APP_PAIR_SPLIT_DIVIDER)
|
val dividerRegion = entry.getVisibleBounds(APP_PAIR_SPLIT_DIVIDER)
|
||||||
this.coversExactly(appPairsHelper.getPrimaryBounds(dividerRegion),
|
visibleRegion(primaryApp.defaultWindowName)
|
||||||
primaryApp.defaultWindowName)
|
.coversExactly(appPairsHelper.getPrimaryBounds(dividerRegion))
|
||||||
.coversExactly(appPairsHelper.getSecondaryBounds(dividerRegion),
|
visibleRegion(secondaryApp.defaultWindowName)
|
||||||
secondaryApp.defaultWindowName)
|
.coversExactly(appPairsHelper.getSecondaryBounds(dividerRegion))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -87,10 +87,10 @@ class AppPairsTestUnpairPrimaryAndSecondaryApps(
|
|||||||
fun appsStartingBounds() {
|
fun appsStartingBounds() {
|
||||||
testSpec.assertLayersStart {
|
testSpec.assertLayersStart {
|
||||||
val dividerRegion = entry.getVisibleBounds(APP_PAIR_SPLIT_DIVIDER)
|
val dividerRegion = entry.getVisibleBounds(APP_PAIR_SPLIT_DIVIDER)
|
||||||
coversExactly(appPairsHelper.getPrimaryBounds(dividerRegion),
|
visibleRegion(primaryApp.defaultWindowName)
|
||||||
primaryApp.defaultWindowName)
|
.coversExactly(appPairsHelper.getPrimaryBounds(dividerRegion))
|
||||||
coversExactly(appPairsHelper.getSecondaryBounds(dividerRegion),
|
visibleRegion(secondaryApp.defaultWindowName)
|
||||||
secondaryApp.defaultWindowName)
|
.coversExactly(appPairsHelper.getSecondaryBounds(dividerRegion))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -183,8 +183,8 @@ class ResizeLegacySplitScreen(
|
|||||||
dividerBounds.bottom - WindowUtils.dockedStackDividerInset,
|
dividerBounds.bottom - WindowUtils.dockedStackDividerInset,
|
||||||
displayBounds.right,
|
displayBounds.right,
|
||||||
displayBounds.bottom - WindowUtils.navigationBarHeight)
|
displayBounds.bottom - WindowUtils.navigationBarHeight)
|
||||||
this.coversExactly(topAppBounds, "SimpleActivity")
|
visibleRegion("SimpleActivity").coversExactly(topAppBounds)
|
||||||
.coversExactly(bottomAppBounds, "ImeActivity")
|
visibleRegion("ImeActivity").coversExactly(bottomAppBounds)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -203,8 +203,8 @@ class ResizeLegacySplitScreen(
|
|||||||
displayBounds.right,
|
displayBounds.right,
|
||||||
displayBounds.bottom - WindowUtils.navigationBarHeight)
|
displayBounds.bottom - WindowUtils.navigationBarHeight)
|
||||||
|
|
||||||
this.coversExactly(topAppBounds, sSimpleActivity)
|
visibleRegion(sSimpleActivity).coversExactly(topAppBounds)
|
||||||
.coversExactly(bottomAppBounds, sImeActivity)
|
visibleRegion(sImeActivity).coversExactly(bottomAppBounds)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -90,8 +90,8 @@ class EnterExitPipTest(
|
|||||||
@Test
|
@Test
|
||||||
fun testAppCoversFullScreenWithPipOnDisplay() {
|
fun testAppCoversFullScreenWithPipOnDisplay() {
|
||||||
testSpec.assertLayersStart {
|
testSpec.assertLayersStart {
|
||||||
coversExactly(displayBounds, testApp.defaultWindowName)
|
visibleRegion(testApp.defaultWindowName).coversExactly(displayBounds)
|
||||||
coversAtMost(displayBounds, pipApp.defaultWindowName)
|
visibleRegion(pipApp.defaultWindowName).coversAtMost(displayBounds)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,7 +99,7 @@ class EnterExitPipTest(
|
|||||||
@Test
|
@Test
|
||||||
fun pipAppCoversFullScreen() {
|
fun pipAppCoversFullScreen() {
|
||||||
testSpec.assertLayersEnd {
|
testSpec.assertLayersEnd {
|
||||||
coversExactly(displayBounds, pipApp.defaultWindowName)
|
visibleRegion(pipApp.defaultWindowName).coversExactly(displayBounds)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ class EnterPipToOtherOrientationTest(
|
|||||||
@Test
|
@Test
|
||||||
fun pipAppLayerHidesTestApp() {
|
fun pipAppLayerHidesTestApp() {
|
||||||
testSpec.assertLayersStart {
|
testSpec.assertLayersStart {
|
||||||
coversExactly(startingBounds, pipApp.defaultWindowName)
|
visibleRegion(pipApp.defaultWindowName).coversExactly(startingBounds)
|
||||||
isInvisible(testApp.defaultWindowName)
|
isInvisible(testApp.defaultWindowName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -125,7 +125,7 @@ class EnterPipToOtherOrientationTest(
|
|||||||
@Test
|
@Test
|
||||||
fun testAppLayerCoversFullScreen() {
|
fun testAppLayerCoversFullScreen() {
|
||||||
testSpec.assertLayersEnd {
|
testSpec.assertLayersEnd {
|
||||||
coversExactly(endingBounds, testApp.defaultWindowName)
|
visibleRegion(testApp.defaultWindowName).coversExactly(endingBounds)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -116,8 +116,8 @@ class PipLegacySplitScreenTest(testSpec: FlickerTestParameter) : PipTransition(t
|
|||||||
@Test
|
@Test
|
||||||
fun bothAppLayersVisible() {
|
fun bothAppLayersVisible() {
|
||||||
testSpec.assertLayersEnd {
|
testSpec.assertLayersEnd {
|
||||||
coversAtMost(displayBounds, testApp.defaultWindowName)
|
visibleRegion(testApp.defaultWindowName).coversAtMost(displayBounds)
|
||||||
coversAtMost(displayBounds, imeApp.defaultWindowName)
|
visibleRegion(imeApp.defaultWindowName).coversAtMost(displayBounds)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ class PipMovesInAllApps(testSpec: FlickerTestParameter) : PipTransition(testSpec
|
|||||||
@Test
|
@Test
|
||||||
fun pipLayerInsideDisplay() {
|
fun pipLayerInsideDisplay() {
|
||||||
testSpec.assertLayersStart {
|
testSpec.assertLayersStart {
|
||||||
coversAtMost(displayBounds, pipApp.defaultWindowName)
|
visibleRegion(pipApp.defaultWindowName).coversAtMost(displayBounds)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -26,11 +26,11 @@ import com.android.server.wm.flicker.dsl.FlickerBuilder
|
|||||||
import com.android.server.wm.flicker.endRotation
|
import com.android.server.wm.flicker.endRotation
|
||||||
import com.android.server.wm.flicker.helpers.WindowUtils
|
import com.android.server.wm.flicker.helpers.WindowUtils
|
||||||
import com.android.server.wm.flicker.helpers.setRotation
|
import com.android.server.wm.flicker.helpers.setRotation
|
||||||
import com.android.server.wm.flicker.startRotation
|
|
||||||
import com.android.wm.shell.flicker.helpers.FixedAppHelper
|
|
||||||
import com.android.server.wm.flicker.noUncoveredRegions
|
|
||||||
import com.android.server.wm.flicker.navBarLayerRotatesAndScales
|
import com.android.server.wm.flicker.navBarLayerRotatesAndScales
|
||||||
|
import com.android.server.wm.flicker.noUncoveredRegions
|
||||||
|
import com.android.server.wm.flicker.startRotation
|
||||||
import com.android.server.wm.flicker.statusBarLayerRotatesScales
|
import com.android.server.wm.flicker.statusBarLayerRotatesScales
|
||||||
|
import com.android.wm.shell.flicker.helpers.FixedAppHelper
|
||||||
import org.junit.FixMethodOrder
|
import org.junit.FixMethodOrder
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import org.junit.runner.RunWith
|
import org.junit.runner.RunWith
|
||||||
@@ -91,8 +91,8 @@ class PipRotationTest(testSpec: FlickerTestParameter) : PipTransition(testSpec)
|
|||||||
@Test
|
@Test
|
||||||
fun appLayerRotates_StartingBounds() {
|
fun appLayerRotates_StartingBounds() {
|
||||||
testSpec.assertLayersStart {
|
testSpec.assertLayersStart {
|
||||||
coversExactly(startingBounds, fixedApp.defaultWindowName)
|
visibleRegion(fixedApp.defaultWindowName).coversExactly(startingBounds)
|
||||||
coversAtMost(startingBounds, pipApp.defaultWindowName)
|
visibleRegion(pipApp.defaultWindowName).coversAtMost(startingBounds)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -100,8 +100,8 @@ class PipRotationTest(testSpec: FlickerTestParameter) : PipTransition(testSpec)
|
|||||||
@Test
|
@Test
|
||||||
fun appLayerRotates_EndingBounds() {
|
fun appLayerRotates_EndingBounds() {
|
||||||
testSpec.assertLayersEnd {
|
testSpec.assertLayersEnd {
|
||||||
coversExactly(endingBounds, fixedApp.defaultWindowName)
|
visibleRegion(fixedApp.defaultWindowName).coversExactly(endingBounds)
|
||||||
coversAtMost(endingBounds, pipApp.defaultWindowName)
|
visibleRegion(pipApp.defaultWindowName).coversAtMost(endingBounds)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ class PipToAppTest(testSpec: FlickerTestParameter) : PipTransition(testSpec) {
|
|||||||
@Test
|
@Test
|
||||||
fun testAppCoversFullScreen() {
|
fun testAppCoversFullScreen() {
|
||||||
testSpec.assertLayersStart {
|
testSpec.assertLayersStart {
|
||||||
coversExactly(displayBounds, pipApp.defaultWindowName)
|
visibleRegion(pipApp.defaultWindowName).coversExactly(displayBounds)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ class SetRequestedOrientationWhilePinnedTest(
|
|||||||
@Test
|
@Test
|
||||||
fun pipWindowInsideDisplay() {
|
fun pipWindowInsideDisplay() {
|
||||||
testSpec.assertWmStart {
|
testSpec.assertWmStart {
|
||||||
coversAtMost(startingBounds, pipApp.defaultWindowName)
|
frameRegion(pipApp.defaultWindowName).coversAtMost(startingBounds)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -107,7 +107,7 @@ class SetRequestedOrientationWhilePinnedTest(
|
|||||||
@Test
|
@Test
|
||||||
fun pipLayerInsideDisplay() {
|
fun pipLayerInsideDisplay() {
|
||||||
testSpec.assertLayersStart {
|
testSpec.assertLayersStart {
|
||||||
coversAtMost(startingBounds, pipApp.defaultWindowName)
|
visibleRegion(pipApp.defaultWindowName).coversAtMost(startingBounds)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -121,7 +121,7 @@ class SetRequestedOrientationWhilePinnedTest(
|
|||||||
@Test
|
@Test
|
||||||
fun pipAppLayerCoversFullScreen() {
|
fun pipAppLayerCoversFullScreen() {
|
||||||
testSpec.assertLayersEnd {
|
testSpec.assertLayersEnd {
|
||||||
coversExactly(endingBounds, pipApp.defaultWindowName)
|
visibleRegion(pipApp.defaultWindowName).coversExactly(endingBounds)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -101,10 +101,10 @@ fun FlickerTestParameter.noUncoveredRegions(
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
assertLayersStart {
|
assertLayersStart {
|
||||||
this.coversAtLeast(startingBounds)
|
this.visibleRegion().coversAtLeast(startingBounds)
|
||||||
}
|
}
|
||||||
assertLayersEnd {
|
assertLayersEnd {
|
||||||
this.coversAtLeast(endingBounds)
|
this.visibleRegion().coversAtLeast(endingBounds)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -152,10 +152,10 @@ fun FlickerTestParameter.navBarLayerRotatesAndScales(
|
|||||||
val endingPos = WindowUtils.getNavigationBarPosition(endRotation)
|
val endingPos = WindowUtils.getNavigationBarPosition(endRotation)
|
||||||
|
|
||||||
assertLayersStart {
|
assertLayersStart {
|
||||||
this.coversExactly(startingPos, NAV_BAR_LAYER_NAME)
|
this.visibleRegion(NAV_BAR_LAYER_NAME).coversExactly(startingPos)
|
||||||
}
|
}
|
||||||
assertLayersEnd {
|
assertLayersEnd {
|
||||||
this.coversExactly(endingPos, NAV_BAR_LAYER_NAME)
|
this.visibleRegion(NAV_BAR_LAYER_NAME).coversExactly(endingPos)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -168,10 +168,10 @@ fun FlickerTestParameter.statusBarLayerRotatesScales(
|
|||||||
val endingPos = WindowUtils.getStatusBarPosition(endRotation)
|
val endingPos = WindowUtils.getStatusBarPosition(endRotation)
|
||||||
|
|
||||||
assertLayersStart {
|
assertLayersStart {
|
||||||
this.coversExactly(startingPos, STATUS_BAR_WINDOW_NAME)
|
this.visibleRegion(STATUS_BAR_WINDOW_NAME).coversExactly(startingPos)
|
||||||
}
|
}
|
||||||
assertLayersEnd {
|
assertLayersEnd {
|
||||||
this.coversExactly(endingPos, STATUS_BAR_WINDOW_NAME)
|
this.visibleRegion(STATUS_BAR_WINDOW_NAME).coversExactly(endingPos)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ package com.android.server.wm.flicker.close
|
|||||||
import android.app.Instrumentation
|
import android.app.Instrumentation
|
||||||
import android.platform.test.annotations.Presubmit
|
import android.platform.test.annotations.Presubmit
|
||||||
import android.view.Surface
|
import android.view.Surface
|
||||||
|
import androidx.test.filters.FlakyTest
|
||||||
import androidx.test.platform.app.InstrumentationRegistry
|
import androidx.test.platform.app.InstrumentationRegistry
|
||||||
import com.android.server.wm.flicker.FlickerBuilderProvider
|
import com.android.server.wm.flicker.FlickerBuilderProvider
|
||||||
import com.android.server.wm.flicker.FlickerTestParameter
|
import com.android.server.wm.flicker.FlickerTestParameter
|
||||||
@@ -87,13 +88,13 @@ abstract class CloseAppTransition(protected val testSpec: FlickerTestParameter)
|
|||||||
testSpec.statusBarLayerIsAlwaysVisible()
|
testSpec.statusBarLayerIsAlwaysVisible()
|
||||||
}
|
}
|
||||||
|
|
||||||
@Presubmit
|
@FlakyTest
|
||||||
@Test
|
@Test
|
||||||
open fun navBarLayerRotatesAndScales() {
|
open fun navBarLayerRotatesAndScales() {
|
||||||
testSpec.navBarLayerRotatesAndScales(testSpec.config.startRotation, Surface.ROTATION_0)
|
testSpec.navBarLayerRotatesAndScales(testSpec.config.startRotation, Surface.ROTATION_0)
|
||||||
}
|
}
|
||||||
|
|
||||||
@Presubmit
|
@FlakyTest
|
||||||
@Test
|
@Test
|
||||||
open fun statusBarLayerRotatesScales() {
|
open fun statusBarLayerRotatesScales() {
|
||||||
testSpec.statusBarLayerRotatesScales(testSpec.config.startRotation, Surface.ROTATION_0)
|
testSpec.statusBarLayerRotatesScales(testSpec.config.startRotation, Surface.ROTATION_0)
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ import android.app.Instrumentation
|
|||||||
import android.platform.test.annotations.Presubmit
|
import android.platform.test.annotations.Presubmit
|
||||||
import android.view.Surface
|
import android.view.Surface
|
||||||
import android.view.WindowManagerPolicyConstants
|
import android.view.WindowManagerPolicyConstants
|
||||||
|
import androidx.test.filters.FlakyTest
|
||||||
import androidx.test.filters.RequiresDevice
|
import androidx.test.filters.RequiresDevice
|
||||||
import androidx.test.platform.app.InstrumentationRegistry
|
import androidx.test.platform.app.InstrumentationRegistry
|
||||||
import com.android.server.wm.flicker.FlickerBuilderProvider
|
import com.android.server.wm.flicker.FlickerBuilderProvider
|
||||||
@@ -134,7 +135,7 @@ class OpenImeWindowTest(private val testSpec: FlickerTestParameter) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Presubmit
|
@FlakyTest
|
||||||
@Test
|
@Test
|
||||||
fun visibleWindowsShownMoreThanOneConsecutiveEntry() {
|
fun visibleWindowsShownMoreThanOneConsecutiveEntry() {
|
||||||
testSpec.assertWm {
|
testSpec.assertWm {
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ import com.android.server.wm.flicker.FlickerTestParameter
|
|||||||
import com.android.server.wm.flicker.FlickerTestParameterFactory
|
import com.android.server.wm.flicker.FlickerTestParameterFactory
|
||||||
import com.android.server.wm.flicker.dsl.FlickerBuilder
|
import com.android.server.wm.flicker.dsl.FlickerBuilder
|
||||||
import com.android.server.wm.flicker.helpers.SimpleAppHelper
|
import com.android.server.wm.flicker.helpers.SimpleAppHelper
|
||||||
import org.junit.Assume
|
|
||||||
import org.junit.FixMethodOrder
|
import org.junit.FixMethodOrder
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import org.junit.runner.RunWith
|
import org.junit.runner.RunWith
|
||||||
@@ -59,20 +58,6 @@ class ChangeAppRotationTest(
|
|||||||
super.focusDoesNotChange()
|
super.focusDoesNotChange()
|
||||||
}
|
}
|
||||||
|
|
||||||
@Presubmit
|
|
||||||
@Test
|
|
||||||
override fun navBarLayerRotatesAndScales() {
|
|
||||||
Assume.assumeFalse(testSpec.isRotated)
|
|
||||||
super.navBarLayerRotatesAndScales()
|
|
||||||
}
|
|
||||||
|
|
||||||
@FlakyTest(bugId = 140855415)
|
|
||||||
@Test
|
|
||||||
fun navBarLayerRotatesAndScales_flaky() {
|
|
||||||
Assume.assumeTrue(testSpec.isRotated)
|
|
||||||
super.navBarLayerRotatesAndScales()
|
|
||||||
}
|
|
||||||
|
|
||||||
@Presubmit
|
@Presubmit
|
||||||
@Test
|
@Test
|
||||||
fun screenshotLayerBecomesInvisible() {
|
fun screenshotLayerBecomesInvisible() {
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ abstract class RotationTransition(protected val testSpec: FlickerTestParameter)
|
|||||||
@Test
|
@Test
|
||||||
open fun appLayerRotates_StartingPos() {
|
open fun appLayerRotates_StartingPos() {
|
||||||
testSpec.assertLayersStart {
|
testSpec.assertLayersStart {
|
||||||
this.coversExactly(startingPos, testApp.getPackage())
|
this.visibleRegion(testApp.getPackage()).coversExactly(startingPos)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -147,7 +147,7 @@ abstract class RotationTransition(protected val testSpec: FlickerTestParameter)
|
|||||||
@Test
|
@Test
|
||||||
open fun appLayerRotates_EndingPos() {
|
open fun appLayerRotates_EndingPos() {
|
||||||
testSpec.assertLayersEnd {
|
testSpec.assertLayersEnd {
|
||||||
this.coversExactly(endingPos, testApp.getPackage())
|
this.visibleRegion(testApp.getPackage()).coversExactly(endingPos)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user