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

Commit b263e2d9 authored by Tracy Zhou's avatar Tracy Zhou
Browse files

Update phone gesture nav test in NavButtonLayoutFactoryTest

I think the test was written in the first version of NavButtonLayoutFactoryTest where phone gesture nav layouter didn't exist (verified with the revision history), hence updating the logic here

Bug: 324989451
Test atest NavButtonLayoutFactoryTest

Change-Id: I325a5d47db86add8d094e61b1de923f50a2db309
parent 772e0127
Loading
Loading
Loading
Loading
+11 −9
Original line number Diff line number Diff line
@@ -171,10 +171,11 @@ class NavButtonLayoutFactoryTest {
        assert(layoutter is PhoneSeascapeNavLayoutter)
    }

    @Test(expected = IllegalStateException::class)
    fun noValidLayoutForPhoneGestureNav() {
    @Test
    fun getTaskbarPhoneGestureNavLayoutter() {
        assumeTrue(ENABLE_TASKBAR_NAVBAR_UNIFICATION)
        mockDeviceProfile.isTaskbarPresent = false
        val layoutter: NavButtonLayoutFactory.NavButtonLayoutter =
            getLayoutter(
                isKidsMode = false,
                isInSetup = false,
@@ -182,6 +183,7 @@ class NavButtonLayoutFactoryTest {
                phoneMode = true,
                surfaceRotation = surfaceRotation
            )
        assert(layoutter is PhoneGestureLayoutter)
    }

    private fun setDeviceProfileLandscape() {