diff options
author | Nataniel Borges <natanieljr@google.com> | 2021-10-21 09:25:32 +0200 |
---|---|---|
committer | Nataniel Borges <natanieljr@google.com> | 2021-11-09 16:04:38 +0000 |
commit | 9d7afb80ec6e4f72265b4eb59ef89ccff9c73290 (patch) | |
tree | c51f7ffadbf5132220788bce30dd1f0704a30b37 /tests | |
parent | aaf2ae3c4c7d6ce3e785eb3ae91b2a7c7c4be6eb (diff) |
Remove status bar visibility check in lock screen
The current implementation doesn't set the status bar as invisible when the devices screen is off
Test: atest FlickerTests:OpenAppNonResizeableTest
Bug: 202936526
Change-Id: Ieac25650c4d022d0f72c8c355352e1a23c7674e7
Diffstat (limited to 'tests')
-rw-r--r-- | tests/FlickerTests/src/com/android/server/wm/flicker/launch/OpenAppNonResizeableTest.kt | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/tests/FlickerTests/src/com/android/server/wm/flicker/launch/OpenAppNonResizeableTest.kt b/tests/FlickerTests/src/com/android/server/wm/flicker/launch/OpenAppNonResizeableTest.kt index cf10c5366ce9..08aaea70762f 100644 --- a/tests/FlickerTests/src/com/android/server/wm/flicker/launch/OpenAppNonResizeableTest.kt +++ b/tests/FlickerTests/src/com/android/server/wm/flicker/launch/OpenAppNonResizeableTest.kt @@ -28,7 +28,7 @@ import com.android.server.wm.flicker.FlickerTestParameterFactory import com.android.server.wm.flicker.annotation.Group1 import com.android.server.wm.flicker.helpers.NonResizeableAppHelper import com.android.server.wm.flicker.dsl.FlickerBuilder -import com.android.server.wm.flicker.statusBarWindowIsVisible +import com.android.server.wm.flicker.helpers.WindowUtils import com.android.server.wm.traces.common.FlickerComponentName import com.google.common.truth.Truth import org.junit.FixMethodOrder @@ -171,6 +171,37 @@ class OpenAppNonResizeableTest(testSpec: FlickerTestParameter) : OpenAppTransiti @Test override fun statusBarWindowIsVisible() = super.statusBarWindowIsVisible() + /** + * Checks that the status bar layer is visible at the end of the trace + * + * It is not possible to check at the start because the animation is working differently + * in devices with and without blur (b/202936526) + */ + @Presubmit + @Test + override fun statusBarLayerIsVisible() { + testSpec.assertLayersEnd { + this.isVisible(FlickerComponentName.STATUS_BAR) + } + } + + /** {@inheritDoc} */ + @FlakyTest(bugId = 202936526) + @Test + override fun statusBarLayerRotatesScales() = super.statusBarLayerRotatesScales() + + /** {@inheritDoc} */ + @Presubmit + @Test + fun statusBarLayerPositionAtEnd() { + testSpec.assertLayersEnd { + val display = this.entry.displays.minByOrNull { it.id } + ?: throw RuntimeException("There is no display!") + this.visibleRegion(FlickerComponentName.STATUS_BAR) + .coversExactly(WindowUtils.getStatusBarPosition(display)) + } + } + /** {@inheritDoc} */ @FlakyTest @Test |