From 40428c8dc2ca9425bf0b0bf6eedb90bb487433ef Mon Sep 17 00:00:00 2001 From: Doris Liu Date: Thu, 25 Feb 2016 18:37:06 -0800 Subject: [PATCH] Testing initial value for 0-duration animations To ensure consistency with the pre-N animation behavior, we are testing the following: - For animations that have a duration of 0, we set the animator's value to the end value when start() is called. - For animations with a duration > 0 but with the duration scale of 0 applied, we set the animator's value to its start value when start() gets called. Change-Id: I666105e0677c6cfdeddb11b483d71dab978adc11 --- .../src/android/animation/ValueAnimatorTests.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/tests/coretests/src/android/animation/ValueAnimatorTests.java b/core/tests/coretests/src/android/animation/ValueAnimatorTests.java index 998c72a9e9c8a..aa21b1ddfbe36 100644 --- a/core/tests/coretests/src/android/animation/ValueAnimatorTests.java +++ b/core/tests/coretests/src/android/animation/ValueAnimatorTests.java @@ -900,6 +900,10 @@ public class ValueAnimatorTests extends ActivityInstrumentationTestCase2