Merge "Update test names to kotlin style" into tm-dev
This commit is contained in:
@@ -47,7 +47,7 @@ class StackScrollAlgorithmTest : SysuiTestCase() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun testUpTranslationSetToDefaultValue() {
|
fun resetViewStates_defaultHun_yTranslationIsInset() {
|
||||||
whenever(notificationRow.isPinned).thenReturn(true)
|
whenever(notificationRow.isPinned).thenReturn(true)
|
||||||
whenever(notificationRow.isHeadsUp).thenReturn(true)
|
whenever(notificationRow.isHeadsUp).thenReturn(true)
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@ class StackScrollAlgorithmTest : SysuiTestCase() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun testHeadsUpTranslationChangesBasedOnStackMargin() {
|
fun resetViewStates_stackMargin_changesHunYTranslation() {
|
||||||
whenever(notificationRow.isPinned).thenReturn(true)
|
whenever(notificationRow.isPinned).thenReturn(true)
|
||||||
whenever(notificationRow.isHeadsUp).thenReturn(true)
|
whenever(notificationRow.isHeadsUp).thenReturn(true)
|
||||||
val minHeadsUpTranslation = context.resources
|
val minHeadsUpTranslation = context.resources
|
||||||
@@ -72,7 +72,7 @@ class StackScrollAlgorithmTest : SysuiTestCase() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun resetViewStates_childIsEmptyShadeView_viewIsCenteredVertically() {
|
fun resetViewStates_emptyShadeView_isCenteredVertically() {
|
||||||
stackScrollAlgorithm.initView(context)
|
stackScrollAlgorithm.initView(context)
|
||||||
val emptyShadeView = EmptyShadeView(context, /* attrs= */ null).apply {
|
val emptyShadeView = EmptyShadeView(context, /* attrs= */ null).apply {
|
||||||
layout(/* l= */ 0, /* t= */ 0, /* r= */ 100, /* b= */ 100)
|
layout(/* l= */ 0, /* t= */ 0, /* r= */ 100, /* b= */ 100)
|
||||||
|
|||||||
Reference in New Issue
Block a user