openclaw-android-heartbeat/wear/src/test/java/ai/openclaw/wear/WearLayoutTest.kt
Brendan Greenlee 7a380c40ed Import official OpenClaw Android app (apps/android @ 71a59512ba476df3328cf485d84748121cf341f2)
Pristine fork source for PROJ-0088. v1 will turn this into a WebView web
shell; the WebSocket node infrastructure stays intact for v2 heartbeat.
2026-08-01 15:13:34 +00:00

39 lines
901 B
Kotlin

package ai.openclaw.wear
import androidx.compose.ui.unit.dp
import org.junit.Assert.assertEquals
import org.junit.Test
class WearLayoutTest {
@Test
fun voiceLayoutFitsSmallAndLargeRoundScreens() {
assertEquals(
WearVoiceLayout(
horizontalPadding = 6.dp,
orbSize = 80.dp,
contentHeight = 144.dp,
),
wearVoiceLayout(maxWidth = 192.dp, fontScale = 1f),
)
assertEquals(
WearVoiceLayout(
horizontalPadding = 6.dp,
orbSize = 92.dp,
contentHeight = 156.dp,
),
wearVoiceLayout(maxWidth = 227.dp, fontScale = 1f),
)
}
@Test
fun voiceLayoutMakesRoomForLargeTextOnSmallRoundScreens() {
assertEquals(
WearVoiceLayout(
horizontalPadding = 4.dp,
orbSize = 68.dp,
contentHeight = 132.dp,
),
wearVoiceLayout(maxWidth = 192.dp, fontScale = 1.2f),
)
}
}