Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d4d46e7 authored by Ale Nijamkin's avatar Ale Nijamkin
Browse files

[flexiglass] Disables ClockSectionTest if flexi is on

ClockSection isn't used in Flexiglass and this test is failing if flexi
is enabled.

Bug: 283121968
Test: not tested
Flag: EXEMPT test only change
Change-Id: I55ae85ffb7c446e2260a4ee900a2aad5780451e2
parent fd265059
Loading
Loading
Loading
Loading
+11 −5
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ import androidx.test.filters.SmallTest
import com.android.systemui.SysuiTestCase
import com.android.systemui.coroutines.collectLastValue
import com.android.systemui.customization.R as customR
import com.android.systemui.flags.DisableSceneContainer
import com.android.systemui.keyguard.domain.interactor.keyguardBlueprintInteractor
import com.android.systemui.keyguard.domain.interactor.keyguardClockInteractor
import com.android.systemui.keyguard.domain.interactor.keyguardSmartspaceInteractor
@@ -61,19 +62,24 @@ import org.mockito.kotlin.mock

@RunWith(AndroidJUnit4::class)
@SmallTest
@DisableSceneContainer
class ClockSectionTest : SysuiTestCase() {
    private lateinit var underTest: ClockSection

    private val KEYGUARD_SMARTSPACE_TOP_OFFSET: Int
        get() =
            kosmos.fakeSystemBarUtilsProxy.getStatusBarHeight() / 2 +
            context.resources.getDimensionPixelSize(customR.dimen.keyguard_smartspace_top_offset)
                context.resources.getDimensionPixelSize(
                    customR.dimen.keyguard_smartspace_top_offset
                )

    private val LARGE_CLOCK_TOP_WITHOUT_SMARTSPACE: Int
        get() =
            kosmos.fakeSystemBarUtilsProxy.getStatusBarHeight() +
                context.resources.getDimensionPixelSize(customR.dimen.small_clock_padding_top) +
                context.resources.getDimensionPixelSize(customR.dimen.keyguard_smartspace_top_offset)
                context.resources.getDimensionPixelSize(
                    customR.dimen.keyguard_smartspace_top_offset
                )

    private val LARGE_CLOCK_TOP
        get() =