commit | 4faf378213359d408ba9c021e5b024335423fb6f | [log] [tgz] |
---|---|---|
author | Pablo Gamito <pablogamito@google.com> | Tue Dec 13 16:56:03 2022 +0000 |
committer | Pablo Gamito <pablogamito@google.com> | Tue Dec 13 16:59:00 2022 +0000 |
tree | d632dc39eb0591524def0b588ac2d2fe3f99807a | |
parent | bfb05c5e3146db56133f08356c766a199f9d83ef [diff] |
Run tablet specific assertions only on tablets To avoid assumption failures Fixes: 262390300 Test: atest FlickerTests:SeamlessAppRotationTest Change-Id: Ie02ef527640f1e0637297deefe7a743a5e126d5c
diff --git a/tests/FlickerTests/src/com/android/server/wm/flicker/ime/CloseImeWindowToAppTest.kt b/tests/FlickerTests/src/com/android/server/wm/flicker/ime/CloseImeWindowToAppTest.kt index afc5f65..ca4c6a3 100644 --- a/tests/FlickerTests/src/com/android/server/wm/flicker/ime/CloseImeWindowToAppTest.kt +++ b/tests/FlickerTests/src/com/android/server/wm/flicker/ime/CloseImeWindowToAppTest.kt
@@ -106,7 +106,9 @@ @IwTest(focusArea = "ime") override fun cujCompleted() { super.cujCompleted() - navBarLayerPositionAtStartAndEnd() + if (!flicker.scenario.isTablet) { + navBarLayerPositionAtStartAndEnd() + } imeLayerBecomesInvisible() imeAppLayerIsAlwaysVisible() imeAppWindowIsAlwaysVisible()
diff --git a/tests/FlickerTests/src/com/android/server/wm/flicker/ime/CloseImeWindowToHomeTest.kt b/tests/FlickerTests/src/com/android/server/wm/flicker/ime/CloseImeWindowToHomeTest.kt index aedf965..730c4f5 100644 --- a/tests/FlickerTests/src/com/android/server/wm/flicker/ime/CloseImeWindowToHomeTest.kt +++ b/tests/FlickerTests/src/com/android/server/wm/flicker/ime/CloseImeWindowToHomeTest.kt
@@ -104,7 +104,9 @@ @IwTest(focusArea = "ime") override fun cujCompleted() { super.cujCompleted() - navBarLayerPositionAtStartAndEnd() + if (!flicker.scenario.isTablet) { + navBarLayerPositionAtStartAndEnd() + } imeLayerBecomesInvisible() imeAppWindowBecomesInvisible() imeWindowBecomesInvisible()
diff --git a/tests/FlickerTests/src/com/android/server/wm/flicker/rotation/SeamlessAppRotationTest.kt b/tests/FlickerTests/src/com/android/server/wm/flicker/rotation/SeamlessAppRotationTest.kt index 54f38c3..2447474 100644 --- a/tests/FlickerTests/src/com/android/server/wm/flicker/rotation/SeamlessAppRotationTest.kt +++ b/tests/FlickerTests/src/com/android/server/wm/flicker/rotation/SeamlessAppRotationTest.kt
@@ -213,6 +213,14 @@ // not yet tablet compatible appLayerRotates() appLayerAlwaysVisible() + // not tablet compatible + navBarLayerIsVisibleAtStartAndEnd() + navBarWindowIsAlwaysVisible() + } + + if (flicker.scenario.isTablet) { + taskBarLayerIsVisibleAtStartAndEnd() + taskBarWindowIsAlwaysVisible() } appWindowFullScreen() @@ -223,10 +231,6 @@ appLayerRotates_StartingPos() appLayerRotates_EndingPos() entireScreenCovered() - navBarLayerIsVisibleAtStartAndEnd() - navBarWindowIsAlwaysVisible() - taskBarLayerIsVisibleAtStartAndEnd() - taskBarWindowIsAlwaysVisible() visibleLayersShownMoreThanOneConsecutiveEntry() visibleWindowsShownMoreThanOneConsecutiveEntry() }