|
|
|
@ -185,12 +185,10 @@ class StaticComposableTests {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
fun stylesPosition() { |
|
|
|
|
val root = "div".asHtmlElement() |
|
|
|
|
fun stylesPosition() = runTest { |
|
|
|
|
val enumValues = Position.values() |
|
|
|
|
renderComposable( |
|
|
|
|
root = root |
|
|
|
|
) { |
|
|
|
|
|
|
|
|
|
composition { |
|
|
|
|
enumValues.forEach { position -> |
|
|
|
|
Span( |
|
|
|
|
{ |
|
|
|
@ -198,14 +196,14 @@ class StaticComposableTests {
|
|
|
|
|
position(position) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
) { } |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
enumValues.forEachIndexed { index, position -> |
|
|
|
|
assertEquals( |
|
|
|
|
"position: ${position.value};", |
|
|
|
|
(root.children[index] as HTMLElement).style.cssText |
|
|
|
|
nextChild().style.cssText |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|