mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Merge "Update test for vertical split" into tm-qpr-dev am: 9de3256583
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20455918 Change-Id: I22f047cef11967f9b32354246f66d9ce82d548ee Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -94,8 +94,13 @@ class FullscreenDrawParamsTest : DeviceProfileBaseTest() {
|
||||
params.setProgress(/* fullscreenProgress= */ 1.0f, /* parentScale= */ 1.0f,
|
||||
/* taskViewScale= */ 1.0f, /* previewWidth= */ 0, dp, mPreviewPositionHelper)
|
||||
|
||||
// Probably unhelpful, but also unclear how to test otherwise ¯\_(ツ)_/¯
|
||||
val fullscreenTaskHeight = (dp.heightPx - dp.taskbarSize) *
|
||||
(1 - (splitBounds.topTaskPercent + splitBounds.dividerHeightPercent))
|
||||
val canvasScreenRatio = canvasHeight / fullscreenTaskHeight
|
||||
val expectedBottomHint = dp.taskbarSize * canvasScreenRatio
|
||||
assertThat(params.mCurrentDrawnInsets.bottom)
|
||||
.isWithin(1f).of((dp.taskbarSize * TASK_SCALE))
|
||||
.isWithin(1f).of(expectedBottomHint)
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user