@@ -21,7 +21,6 @@ import android.app.Activity
21
21
import android.content.Context
22
22
import android.content.Intent
23
23
import android.graphics.Color
24
- import android.os.Build
25
24
import android.view.View
26
25
import android.view.animation.AccelerateInterpolator
27
26
import android.widget.FrameLayout
@@ -76,7 +75,6 @@ import org.junit.Test
76
75
import org.junit.runner.RunWith
77
76
import org.robolectric.Robolectric
78
77
import org.robolectric.android.controller.ActivityController
79
- import org.robolectric.annotation.Config
80
78
import org.robolectric.annotation.LooperMode
81
79
82
80
/* *
@@ -102,7 +100,6 @@ import org.robolectric.annotation.LooperMode
102
100
*/
103
101
@LooperMode(LooperMode .Mode .LEGACY )
104
102
@SuppressLint(" ColorConstantUsageIssue" )
105
- @Config(sdk = [Build .VERSION_CODES .KITKAT ])
106
103
@RunWith(LithoTestRunner ::class )
107
104
class AnimationTest {
108
105
@JvmField @Rule val lithoViewRule = LithoViewRule ()
@@ -1095,18 +1092,18 @@ class AnimationTest {
1095
1092
.isEqualTo(320 )
1096
1093
Assertions .assertThat(lithoView.height)
1097
1094
.describedAs(" view Height should be at start position" )
1098
- .isEqualTo(422 )
1095
+ .isEqualTo(414 )
1099
1096
stateCaller.update()
1100
1097
lithoViewRule.idle()
1101
1098
1102
1099
// X after state update should be at 0 because is going to be animated.
1103
1100
Assertions .assertThat(lithoView.x).describedAs(" view X axis after toggle" ).isEqualTo(0f )
1104
1101
// Y after state update should be at 0 because is going to be animated.
1105
1102
Assertions .assertThat(lithoView.y).describedAs(" view Y axis after toggle" ).isEqualTo(0f )
1106
- // Width after state update should be at 320 because is going to be animated.
1103
+ // Width after state update should be same as original because is going to be animated.
1107
1104
Assertions .assertThat(lithoView.width).describedAs(" view Width after toggle" ).isEqualTo(320 )
1108
- // Height after state update should be at 422 because is going to be animated.
1109
- Assertions .assertThat(lithoView.height).describedAs(" view Height after toggle" ).isEqualTo(422 )
1105
+ // Height after state update should be same as original because is going to be animated.
1106
+ Assertions .assertThat(lithoView.height).describedAs(" view Height after toggle" ).isEqualTo(414 )
1110
1107
transitionTestRule.step(5 )
1111
1108
1112
1109
// Check kdoc for how we calculate this value.
0 commit comments