summaryrefslogtreecommitdiff
path: root/quickstep
diff options
context:
space:
mode:
author Liran Binyamin <liranb@google.com> 2025-03-21 07:00:53 -0700
committer Liran Binyamin <liranb@google.com> 2025-03-21 07:00:53 -0700
commit386212e7aac6062e2eb4fe2d0377b6aac8868aeb (patch)
tree22a33d28e9c79f1b5f93c1dbc74fedbabe38b94a /quickstep
parentdf6dc455a7cd5c4ec39b71b2552631b09e6e5a35 (diff)
Remove flaky test from BubbleBarViewAnimatorTest
This test is flaky in robolectric but does not repro locally. Looking at the test it verifies that the animation doesn't get canceled immediately after it starts. So the scenario here is an edge case for something that shouldn't happen generally because the animation is controlled in this class, although theoretically other classes could obtain a reference to the physics animator and cancel it directly. But since the test flakes badly, we're better off without it until it can be fixed. Bug: 404773413 Flag: EXEMPT test only Test: atest BubbleBarViewAnimatorTest Change-Id: I24493b71842a2fe859ffe40b6f375ade7ee8535d
Diffstat (limited to 'quickstep')
-rw-r--r--quickstep/tests/src/com/android/launcher3/taskbar/bubbles/animation/BubbleBarViewAnimatorTest.kt37
1 files changed, 0 insertions, 37 deletions
diff --git a/quickstep/tests/src/com/android/launcher3/taskbar/bubbles/animation/BubbleBarViewAnimatorTest.kt b/quickstep/tests/src/com/android/launcher3/taskbar/bubbles/animation/BubbleBarViewAnimatorTest.kt
index 61a697503e..8f26795045 100644
--- a/quickstep/tests/src/com/android/launcher3/taskbar/bubbles/animation/BubbleBarViewAnimatorTest.kt
+++ b/quickstep/tests/src/com/android/launcher3/taskbar/bubbles/animation/BubbleBarViewAnimatorTest.kt
@@ -316,43 +316,6 @@ class BubbleBarViewAnimatorTest {
}
@Test
- fun animateBubbleInForStashed_showAnimationCanceled() {
- setUpBubbleBar()
-
- val handle = View(context)
- val handleAnimator = PhysicsAnimator.getInstance(handle)
- bubbleStashController.handleAnimator = handleAnimator
-
- val animator =
- BubbleBarViewAnimator(
- bubbleBarView,
- bubbleStashController,
- flyoutController,
- bubbleBarParentViewController,
- onExpanded = emptyRunnable,
- onBubbleBarVisible = emptyRunnable,
- animatorScheduler,
- )
-
- InstrumentationRegistry.getInstrumentation().runOnMainSync {
- animator.animateBubbleInForStashed(bubble, isExpanding = false)
- }
-
- // wait for the animation to start
- InstrumentationRegistry.getInstrumentation().runOnMainSync {}
- PhysicsAnimatorTestUtils.blockUntilFirstAnimationFrameWhereTrue(handleAnimator) { true }
-
- handleAnimator.assertIsRunning()
- assertThat(animator.isAnimating).isTrue()
- assertThat(animatorScheduler.delayedBlock).isNotNull()
-
- handleAnimator.cancel()
- handleAnimator.assertIsNotRunning()
- assertThat(animator.isAnimating).isFalse()
- assertThat(animatorScheduler.delayedBlock).isNull()
- }
-
- @Test
fun animateBubbleInForStashed_autoExpanding() {
setUpBubbleBar()