Skip to content
Snippets Groups Projects
Commit aaa11137 authored by Mike Schneider's avatar Mike Schneider Committed by Android (Google) Code Review
Browse files

Merge "Annotate existing motion tests with @MotionTest" into main

parents 3f461ce2 f80688a2
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@ android_test {
],
static_libs: [
"platform-test-annotations",
"PlatformComposeSceneTransitionLayoutTestsUtils",
"PlatformMotionTestingCompose",
"androidx.test.runner",
......
......@@ -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")
......
......@@ -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 {
......
......@@ -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()
......
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment