Fix test regression on API 33.
This commit is contained in:
parent
dc5aae831f
commit
64ecb505b6
1 changed files with 3 additions and 1 deletions
|
|
@ -35,12 +35,14 @@ import org.junit.Rule
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import org.junit.rules.TestRule
|
import org.junit.rules.TestRule
|
||||||
import org.junit.runner.RunWith
|
import org.junit.runner.RunWith
|
||||||
|
import org.robolectric.annotation.Config
|
||||||
|
|
||||||
@RunWith(AndroidJUnit4::class)
|
@RunWith(AndroidJUnit4::class)
|
||||||
class RoomListViewTest {
|
class RoomListViewTest {
|
||||||
@get:Rule
|
@get:Rule
|
||||||
val rule = createAndroidComposeRule<ComponentActivity>()
|
val rule = createAndroidComposeRule<ComponentActivity>()
|
||||||
|
|
||||||
|
@Config(qualifiers = "h1024dp")
|
||||||
@Test
|
@Test
|
||||||
fun `displaying the view automatically sends a couple of UpdateVisibleRangeEvents`() {
|
fun `displaying the view automatically sends a couple of UpdateVisibleRangeEvents`() {
|
||||||
val eventsRecorder = EventsRecorder<RoomListEvents>()
|
val eventsRecorder = EventsRecorder<RoomListEvents>()
|
||||||
|
|
@ -54,7 +56,7 @@ class RoomListViewTest {
|
||||||
eventsRecorder.assertList(
|
eventsRecorder.assertList(
|
||||||
listOf(
|
listOf(
|
||||||
RoomListEvents.UpdateVisibleRange(IntRange.EMPTY),
|
RoomListEvents.UpdateVisibleRange(IntRange.EMPTY),
|
||||||
RoomListEvents.UpdateVisibleRange(0..2),
|
RoomListEvents.UpdateVisibleRange(0..5),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue