mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2025-12-05 14:21:55 +00:00
Refactor: Remove unused setContentWrappedInTheme extension function
This commit is contained in:
parent
f25ee25399
commit
ccd0a7a0b1
@ -4,7 +4,6 @@ import androidx.compose.foundation.layout.fillMaxWidth
|
|||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.test.assertIsSelected
|
import androidx.compose.ui.test.assertIsSelected
|
||||||
import androidx.compose.ui.test.junit4.ComposeContentTestRule
|
|
||||||
import androidx.compose.ui.test.junit4.ComposeTestRule
|
import androidx.compose.ui.test.junit4.ComposeTestRule
|
||||||
import androidx.compose.ui.test.onNodeWithContentDescription
|
import androidx.compose.ui.test.onNodeWithContentDescription
|
||||||
import androidx.compose.ui.test.onNodeWithText
|
import androidx.compose.ui.test.onNodeWithText
|
||||||
@ -12,7 +11,6 @@ import androidx.compose.ui.test.performClick
|
|||||||
import kotlinx.coroutines.flow.Flow
|
import kotlinx.coroutines.flow.Flow
|
||||||
import kotlinx.coroutines.flow.MutableStateFlow
|
import kotlinx.coroutines.flow.MutableStateFlow
|
||||||
import kotlinx.coroutines.flow.combine
|
import kotlinx.coroutines.flow.combine
|
||||||
import org.jetbrains.jewel.intui.standalone.theme.IntUiTheme
|
|
||||||
import org.jetbrains.plugins.template.weatherApp.model.Location
|
import org.jetbrains.plugins.template.weatherApp.model.Location
|
||||||
import org.jetbrains.plugins.template.weatherApp.model.SelectableLocation
|
import org.jetbrains.plugins.template.weatherApp.model.SelectableLocation
|
||||||
import org.jetbrains.plugins.template.weatherApp.services.MyLocationsViewModelApi
|
import org.jetbrains.plugins.template.weatherApp.services.MyLocationsViewModelApi
|
||||||
@ -180,14 +178,6 @@ internal class MyLocationListTest : ComposeBasedTestCase() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun ComposeContentTestRule.setContentWrappedInTheme(content: @Composable () -> Unit) {
|
|
||||||
setContent {
|
|
||||||
IntUiTheme {
|
|
||||||
content()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private class MyLocationListRobot(private val composableRule: ComposeTestRule) {
|
private class MyLocationListRobot(private val composableRule: ComposeTestRule) {
|
||||||
|
|
||||||
fun clickOnItemWithText(text: String) {
|
fun clickOnItemWithText(text: String) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user