Merge "Ignore letterbox in two tests"
This commit is contained in:
committed by
Android (Google) Code Review
commit
6c1663167c
@@ -59,6 +59,8 @@ class EnterLegacySplitScreenTest(
|
||||
rotationName: String,
|
||||
rotation: Int
|
||||
) : SplitScreenTestBase(rotationName, rotation) {
|
||||
private val letterBox = "Letterbox"
|
||||
|
||||
private val splitScreenSetup: FlickerBuilder
|
||||
get() = FlickerBuilder(instrumentation).apply {
|
||||
val testLaunchActivity = "launch_splitScreen_test_activity"
|
||||
@@ -85,11 +87,6 @@ class EnterLegacySplitScreenTest(
|
||||
layersTrace {
|
||||
navBarLayerIsAlwaysVisible()
|
||||
statusBarLayerIsAlwaysVisible()
|
||||
visibleLayersShownMoreThanOneConsecutiveEntry(
|
||||
listOf(launcherPackageName, splitScreenApp.defaultWindowName,
|
||||
secondaryApp.defaultWindowName,
|
||||
nonResizeableApp.defaultWindowName)
|
||||
)
|
||||
}
|
||||
windowManagerTrace {
|
||||
navBarWindowIsAlwaysVisible()
|
||||
@@ -116,6 +113,9 @@ class EnterLegacySplitScreenTest(
|
||||
dockedStackPrimaryBoundsIsVisible(
|
||||
rotation, splitScreenApp.defaultWindowName, 169271943)
|
||||
dockedStackDividerBecomesVisible()
|
||||
visibleLayersShownMoreThanOneConsecutiveEntry(
|
||||
listOf(launcherPackageName, splitScreenApp.defaultWindowName)
|
||||
)
|
||||
}
|
||||
windowManagerTrace {
|
||||
end {
|
||||
@@ -147,6 +147,10 @@ class EnterLegacySplitScreenTest(
|
||||
dockedStackSecondaryBoundsIsVisible(
|
||||
rotation, secondaryApp.defaultWindowName, 169271943)
|
||||
dockedStackDividerBecomesVisible()
|
||||
visibleLayersShownMoreThanOneConsecutiveEntry(
|
||||
listOf(launcherPackageName, splitScreenApp.defaultWindowName,
|
||||
secondaryApp.defaultWindowName)
|
||||
)
|
||||
}
|
||||
windowManagerTrace {
|
||||
end {
|
||||
@@ -176,6 +180,9 @@ class EnterLegacySplitScreenTest(
|
||||
assertions {
|
||||
layersTrace {
|
||||
dockedStackDividerIsInvisible()
|
||||
visibleLayersShownMoreThanOneConsecutiveEntry(
|
||||
listOf(launcherPackageName, nonResizeableApp.defaultWindowName)
|
||||
)
|
||||
}
|
||||
windowManagerTrace {
|
||||
end {
|
||||
@@ -207,6 +214,10 @@ class EnterLegacySplitScreenTest(
|
||||
val displayBounds = WindowUtils.getDisplayBounds(rotation)
|
||||
this.hasVisibleRegion(nonResizeableApp.defaultWindowName, displayBounds)
|
||||
}
|
||||
visibleLayersShownMoreThanOneConsecutiveEntry(
|
||||
listOf(launcherPackageName, splitScreenApp.defaultWindowName,
|
||||
nonResizeableApp.defaultWindowName, letterBox)
|
||||
)
|
||||
}
|
||||
windowManagerTrace {
|
||||
end {
|
||||
@@ -239,6 +250,10 @@ class EnterLegacySplitScreenTest(
|
||||
val displayBounds = WindowUtils.getDisplayBounds(rotation)
|
||||
this.hasVisibleRegion(nonResizeableApp.defaultWindowName, displayBounds)
|
||||
}
|
||||
visibleLayersShownMoreThanOneConsecutiveEntry(
|
||||
listOf(launcherPackageName, splitScreenApp.defaultWindowName,
|
||||
nonResizeableApp.defaultWindowName, letterBox)
|
||||
)
|
||||
}
|
||||
windowManagerTrace {
|
||||
end {
|
||||
|
||||
Reference in New Issue
Block a user