[go: nahoru, domu]

Removed the @Ignore from TabRow tests

Underlying issues have been fixed in
* aosp/2325197
* aosp/2360799

Test: Verified tests on local

Change-Id: If749fa8cb9010553d1f0e29c592ec20ec3489bf0
diff --git a/tv/tv-material/src/androidTest/java/androidx/tv/material/TabRowTest.kt b/tv/tv-material/src/androidTest/java/androidx/tv/material/TabRowTest.kt
index 86c4a31..aa6684b 100644
--- a/tv/tv-material/src/androidTest/java/androidx/tv/material/TabRowTest.kt
+++ b/tv/tv-material/src/androidTest/java/androidx/tv/material/TabRowTest.kt
@@ -48,7 +48,6 @@
 import androidx.compose.ui.unit.DpRect
 import androidx.compose.ui.unit.dp
 import androidx.test.platform.app.InstrumentationRegistry
-import org.junit.Ignore
 import org.junit.Rule
 import org.junit.Test
 
@@ -57,7 +56,6 @@
     @get:Rule
     val rule = createComposeRule()
 
-    @Ignore // b/261216248
     @Test
     fun tabRow_firstTabIsSelected() {
         val tabs = constructTabs()
@@ -68,7 +66,6 @@
         rule.onNodeWithTag(firstTab).assertIsFocused()
     }
 
-    @Ignore // b/261216248
     @Test
     fun tabRow_dPadRightMovesFocusToSecondTab() {
         val tabs = constructTabs()
@@ -91,7 +88,6 @@
         rule.onNodeWithTag(secondTab).assertIsFocused()
     }
 
-    @Ignore // b/261216248
     @Test
     fun tabRow_dPadLeftMovesFocusToPreviousTab() {
         val tabs = constructTabs()
@@ -139,7 +135,6 @@
         rule.onNodeWithTag(firstTab).assertIsFocused()
     }
 
-    @Ignore // b/261216248
     @Test
     fun tabRow_changeActiveTabOnClick() {
         val tabs = constructTabs(count = 2)
@@ -239,7 +234,7 @@
         BasicText(text = tab)
     },
 ) {
-    val fr = FocusRequester()
+    val fr = remember { FocusRequester() }
 
     Column(
         modifier = Modifier