Add new route push notifications
This commit is contained in:
@@ -43,6 +43,38 @@ class DriverUiRulesTest {
|
||||
assertEquals(3, inlinePhotoGridRows(5))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun usesShorterChromeOnCompactScreens() {
|
||||
assertEquals(118, authBrandBannerHeightDp(600))
|
||||
assertEquals(150, authBrandBannerHeightDp(690))
|
||||
assertEquals(190, authBrandBannerHeightDp(780))
|
||||
|
||||
assertEquals(92, appBrandHeaderHeightDp(600))
|
||||
assertEquals(108, appBrandHeaderHeightDp(690))
|
||||
assertEquals(124, appBrandHeaderHeightDp(780))
|
||||
|
||||
assertEquals(72, bottomNavigationHeightDp(600))
|
||||
assertEquals(78, bottomNavigationHeightDp(690))
|
||||
assertEquals(82, bottomNavigationHeightDp(780))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun reducesHorizontalSpaceOnNarrowScreens() {
|
||||
assertEquals(14, screenHorizontalPaddingDp(340))
|
||||
assertEquals(16, screenHorizontalPaddingDp(390))
|
||||
assertEquals(20, screenHorizontalPaddingDp(440))
|
||||
|
||||
assertEquals(70, phonePrefixWidthDp(340))
|
||||
assertEquals(82, phonePrefixWidthDp(390))
|
||||
assertEquals(94, phonePrefixWidthDp(440))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun stacksDenseRouteFactsOnNarrowScreens() {
|
||||
assertEquals(1, routeFactColumns(340))
|
||||
assertEquals(2, routeFactColumns(390))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun countsServerPhotosAndLocalUploadsAsVisibleAttachments() {
|
||||
assertEquals(0, visiblePhotoAttachmentCount(serverPhotoCount = 0, localUploadCount = 0))
|
||||
|
||||
Reference in New Issue
Block a user