Skip to content

Commit

Permalink
Fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
gpeal committed Dec 15, 2024
1 parent 7d6cfd0 commit c2c7987
Showing 1 changed file with 5 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,20 +211,9 @@ class TextTestCase : SnapshotTestCase {
LaunchedEffect(snapshotReady, composition != null) {
snapshotReady.value = composition != null
}
val dynamicProperties = rememberLottieDynamicProperties(
rememberLottieDynamicProperty(
LottieProperty.TEXT,
// Family emoji
"\uD83D\uDC68\u200D\uD83D\uDC69\u200D\uD83D\uDC66",
"Text",
),
)
LottieAnimation(
composition,
{ 0f },
dynamicProperties = dynamicProperties,
fontMap = mapOf("Helvetica" to Typeface.DEFAULT),
)
rememberLottieDynamicProperty(LottieProperty.TEXT, "NAME") { frameInfo ->
"${frameInfo.endValue}!!!"
},
}

snapshotComposable("Compose Dynamic Text", "Centered") {
Expand All @@ -234,8 +223,8 @@ class TextTestCase : SnapshotTestCase {
snapshotReady.value = composition != null
}
val dynamicProperties = rememberLottieDynamicProperties(
rememberLottieDynamicProperty(LottieProperty.TEXT, "Text") { frameInfo ->
"${frameInfo.startValue}!!!"
rememberLottieDynamicProperty(LottieProperty.TEXT, "NAME") { frameInfo ->
"${frameInfo.endValue}!!!"
},
)
LottieAnimation(composition, { 0f }, dynamicProperties = dynamicProperties)
Expand Down

0 comments on commit c2c7987

Please sign in to comment.