diff options
| author | 2024-06-04 11:40:48 +0000 | |
|---|---|---|
| committer | 2024-06-04 11:40:48 +0000 | |
| commit | aaa111375ea933f31820bbc7f91b493e5a1811a4 (patch) | |
| tree | 9ded5956ab949531ae5b747a336f105e67303963 | |
| parent | 3f461ce282706929509778e72241b1a1ca966a82 (diff) | |
| parent | f80688a2019755c1cb6907e7b933aebf088afe64 (diff) | |
Merge "Annotate existing motion tests with @MotionTest" into main
5 files changed, 9 insertions, 0 deletions
diff --git a/packages/SystemUI/compose/scene/tests/Android.bp b/packages/SystemUI/compose/scene/tests/Android.bp index 3509504b6357..2ab27af37700 100644 --- a/packages/SystemUI/compose/scene/tests/Android.bp +++ b/packages/SystemUI/compose/scene/tests/Android.bp @@ -37,6 +37,7 @@ android_test { ], static_libs: [ + "platform-test-annotations", "PlatformComposeSceneTransitionLayoutTestsUtils", "PlatformMotionTestingCompose", "androidx.test.runner", diff --git a/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/transformation/AnchoredSizeTest.kt b/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/transformation/AnchoredSizeTest.kt index 7b992124d836..6233608dfad0 100644 --- a/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/transformation/AnchoredSizeTest.kt +++ b/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/transformation/AnchoredSizeTest.kt @@ -16,6 +16,7 @@ package com.android.compose.animation.scene.transformation +import android.platform.test.annotations.MotionTest import androidx.compose.animation.core.LinearEasing import androidx.compose.animation.core.tween import androidx.compose.foundation.layout.Box @@ -38,6 +39,7 @@ import platform.test.motion.compose.createComposeMotionTestRule import platform.test.motion.testing.createGoldenPathManager @RunWith(AndroidJUnit4::class) +@MotionTest class AnchoredSizeTest { private val goldenPaths = createGoldenPathManager("frameworks/base/packages/SystemUI/compose/scene/tests/goldens") diff --git a/packages/SystemUI/tests/src/com/android/systemui/animation/TransitionAnimatorTest.kt b/packages/SystemUI/tests/src/com/android/systemui/animation/TransitionAnimatorTest.kt index 259ece9fdf3f..6c42662f2cdd 100644 --- a/packages/SystemUI/tests/src/com/android/systemui/animation/TransitionAnimatorTest.kt +++ b/packages/SystemUI/tests/src/com/android/systemui/animation/TransitionAnimatorTest.kt @@ -18,6 +18,7 @@ package com.android.systemui.animation import android.animation.AnimatorSet import android.graphics.drawable.GradientDrawable +import android.platform.test.annotations.MotionTest import android.view.ViewGroup import android.widget.FrameLayout import androidx.test.ext.junit.rules.ActivityScenarioRule @@ -44,6 +45,7 @@ import platform.test.screenshot.GoldenPathManager import platform.test.screenshot.PathConfig @SmallTest +@MotionTest @RunWith(AndroidJUnit4::class) class TransitionAnimatorTest : SysuiTestCase() { companion object { diff --git a/packages/SystemUI/tests/src/com/android/systemui/bouncer/ui/composable/BouncerContentTest.kt b/packages/SystemUI/tests/src/com/android/systemui/bouncer/ui/composable/BouncerContentTest.kt index 9a3667819ec7..d32d12c83a8d 100644 --- a/packages/SystemUI/tests/src/com/android/systemui/bouncer/ui/composable/BouncerContentTest.kt +++ b/packages/SystemUI/tests/src/com/android/systemui/bouncer/ui/composable/BouncerContentTest.kt @@ -17,6 +17,7 @@ package com.android.systemui.bouncer.ui.composable import android.app.AlertDialog +import android.platform.test.annotations.MotionTest import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier @@ -55,6 +56,7 @@ import platform.test.screenshot.Displays.FoldableInner @RunWith(AndroidJUnit4::class) @LargeTest +@MotionTest class BouncerContentTest : SysuiTestCase() { private val deviceSpec = DeviceEmulationSpec(FoldableInner) private val kosmos = testKosmos() diff --git a/packages/SystemUI/tests/src/com/android/systemui/bouncer/ui/composable/PatternBouncerTest.kt b/packages/SystemUI/tests/src/com/android/systemui/bouncer/ui/composable/PatternBouncerTest.kt index 4f6f98e8fdb0..2948c0274525 100644 --- a/packages/SystemUI/tests/src/com/android/systemui/bouncer/ui/composable/PatternBouncerTest.kt +++ b/packages/SystemUI/tests/src/com/android/systemui/bouncer/ui/composable/PatternBouncerTest.kt @@ -16,6 +16,7 @@ package com.android.systemui.bouncer.ui.composable +import android.platform.test.annotations.MotionTest import androidx.compose.foundation.layout.size import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier @@ -44,6 +45,7 @@ import platform.test.motion.golden.DataPointTypes @RunWith(AndroidJUnit4::class) @LargeTest +@MotionTest class PatternBouncerTest : SysuiTestCase() { private val kosmos = testKosmos() |