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

Commit 190fa376 authored by Vinit Nayak's avatar Vinit Nayak
Browse files

Update test for change in calculation of split portrait clipping

* Updated code, wrote new test for new code
but forgot to update old test.

Fixes: 261110474
Test: FullscreenDrawParamsTest passes
Change-Id: I39a9029b69774f0ea7064da295c516f547bcbef2
parent 4093307b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -96,7 +96,7 @@ class FullscreenDrawParamsTest : DeviceProfileBaseTest() {
                /* taskViewScale= */ 1.0f,  /* previewWidth= */ 0, dp, mPreviewPositionHelper)

        // Probably unhelpful, but also unclear how to test otherwise ¯\_(ツ)_/¯
        val fullscreenTaskHeight = (dp.heightPx - dp.taskbarSize) *
        val fullscreenTaskHeight = dp.heightPx *
                (1 - (splitBounds.topTaskPercent + splitBounds.dividerHeightPercent))
        val canvasScreenRatio = canvasHeight / fullscreenTaskHeight
        val expectedBottomHint = dp.taskbarSize * canvasScreenRatio