summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Antonella Dellanzo <adellanzo@google.com> 2020-12-18 11:23:48 +0100
committer Antonella Dellanzo <adellanzo@google.com> 2020-12-18 11:23:48 +0100
commit3bc2c00a53c44da72244e296a7f989c1fc0a4fa1 (patch)
tree9580ccf4c31ce75b2b6cd5493de49ce34b7de3f9
parent17116c10497821ea13a7e397a2d66de2114f6c98 (diff)
Ignore letterbox in two tests
Two tests in EnterLegacySplitScreen were failing from time to time with letter box layer not showing 2+ times. We are ignoring it also in the assertions and refactoring the assertion to only ignore the app layers used in each corresponding case instead of ignoring all of them. Test: atest WMShellFlickerTests Bug: b/171049797 Change-Id: I6212f833c790fb0fa002cae2f7a3efc688168578
-rw-r--r--libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/legacysplitscreen/EnterLegacySplitScreenTest.kt25
1 files changed, 20 insertions, 5 deletions
diff --git a/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/legacysplitscreen/EnterLegacySplitScreenTest.kt b/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/legacysplitscreen/EnterLegacySplitScreenTest.kt
index 5b9091fa7c03..07ff4824d8bb 100644
--- a/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/legacysplitscreen/EnterLegacySplitScreenTest.kt
+++ b/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/legacysplitscreen/EnterLegacySplitScreenTest.kt
@@ -58,6 +58,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"
@@ -83,11 +85,6 @@ class EnterLegacySplitScreenTest(
layersTrace {
navBarLayerIsAlwaysVisible()
statusBarLayerIsAlwaysVisible()
- visibleLayersShownMoreThanOneConsecutiveEntry(
- listOf(launcherPackageName, splitScreenApp.defaultWindowName,
- secondaryApp.defaultWindowName,
- nonResizeableApp.defaultWindowName)
- )
}
windowManagerTrace {
navBarWindowIsAlwaysVisible()
@@ -114,6 +111,9 @@ class EnterLegacySplitScreenTest(
dockedStackPrimaryBoundsIsVisible(
rotation, splitScreenApp.defaultWindowName, 169271943)
dockedStackDividerBecomesVisible()
+ visibleLayersShownMoreThanOneConsecutiveEntry(
+ listOf(launcherPackageName, splitScreenApp.defaultWindowName)
+ )
}
windowManagerTrace {
end {
@@ -145,6 +145,10 @@ class EnterLegacySplitScreenTest(
dockedStackSecondaryBoundsIsVisible(
rotation, secondaryApp.defaultWindowName, 169271943)
dockedStackDividerBecomesVisible()
+ visibleLayersShownMoreThanOneConsecutiveEntry(
+ listOf(launcherPackageName, splitScreenApp.defaultWindowName,
+ secondaryApp.defaultWindowName)
+ )
}
windowManagerTrace {
end {
@@ -174,6 +178,9 @@ class EnterLegacySplitScreenTest(
assertions {
layersTrace {
dockedStackDividerIsInvisible()
+ visibleLayersShownMoreThanOneConsecutiveEntry(
+ listOf(launcherPackageName, nonResizeableApp.defaultWindowName)
+ )
}
windowManagerTrace {
end {
@@ -205,6 +212,10 @@ class EnterLegacySplitScreenTest(
val displayBounds = WindowUtils.getDisplayBounds(rotation)
this.hasVisibleRegion(nonResizeableApp.defaultWindowName, displayBounds)
}
+ visibleLayersShownMoreThanOneConsecutiveEntry(
+ listOf(launcherPackageName, splitScreenApp.defaultWindowName,
+ nonResizeableApp.defaultWindowName, letterBox)
+ )
}
windowManagerTrace {
end {
@@ -237,6 +248,10 @@ class EnterLegacySplitScreenTest(
val displayBounds = WindowUtils.getDisplayBounds(rotation)
this.hasVisibleRegion(nonResizeableApp.defaultWindowName, displayBounds)
}
+ visibleLayersShownMoreThanOneConsecutiveEntry(
+ listOf(launcherPackageName, splitScreenApp.defaultWindowName,
+ nonResizeableApp.defaultWindowName, letterBox)
+ )
}
windowManagerTrace {
end {