package com.fireworksdk.bridge.utils import org.junit.Assert.assertEquals import org.junit.Test /** * The bridge seeds playIconWidth when the host sets none, and that seed differs per component: * a player deck matches iOS at 50dp while the other components stay at 36dp. */ class FWConfigUtilPlayIconWidthTest { @Test fun `player deck seeds a wider icon than the other components`() { assertEquals(50f, FWConfigUtil.defaultPlayIconWidthDp(FWComponentType.PLAYER_DECK)) assertEquals(36f, FWConfigUtil.defaultPlayIconWidthDp(FWComponentType.VIDEO_FEED)) assertEquals(36f, FWConfigUtil.defaultPlayIconWidthDp(FWComponentType.CIRCLE_STORY)) assertEquals(36f, FWConfigUtil.defaultPlayIconWidthDp(FWComponentType.STORY_BLOCK)) assertEquals(36f, FWConfigUtil.defaultPlayIconWidthDp(FWComponentType.VIDEO_PLAYER)) } }