|
|
@ -7,7 +7,9 @@ import androidx.compose.web.renderComposableInBody |
|
|
|
import kotlin.properties.ReadOnlyProperty |
|
|
|
import kotlin.properties.ReadOnlyProperty |
|
|
|
import kotlin.reflect.KProperty |
|
|
|
import kotlin.reflect.KProperty |
|
|
|
|
|
|
|
|
|
|
|
internal class TestCase(val composable: @Composable () -> Unit) { |
|
|
|
internal class TestCase { |
|
|
|
|
|
|
|
lateinit var composable: @Composable () -> Unit |
|
|
|
|
|
|
|
|
|
|
|
operator fun provideDelegate( |
|
|
|
operator fun provideDelegate( |
|
|
|
thisRef: Any, |
|
|
|
thisRef: Any, |
|
|
|
property: KProperty<*> |
|
|
|
property: KProperty<*> |
|
|
@ -21,7 +23,9 @@ internal class TestCase(val composable: @Composable () -> Unit) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
internal fun testCase(composable: @Composable () -> Unit): TestCase { |
|
|
|
internal fun testCase(composable: @Composable () -> Unit): TestCase { |
|
|
|
return TestCase(composable) |
|
|
|
return TestCase().apply { |
|
|
|
|
|
|
|
this.composable = composable |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
internal val testCases = mutableMapOf<String, TestCase>() |
|
|
|
internal val testCases = mutableMapOf<String, TestCase>() |
|
|
|