Browse Source

Use new Color API in tests

902_DEPRECATE_OLD_COLOR_API
Shagen Ogandzhanian 3 years ago
parent
commit
a222ee42f0
  1. 4
      web/core/src/jsTest/kotlin/css/CSSBoxTests.kt
  2. 2
      web/core/src/jsTest/kotlin/css/CSSTextTests.kt

4
web/core/src/jsTest/kotlin/css/CSSBoxTests.kt

@ -195,8 +195,8 @@ class CSSBoxTests {
@Test
fun outlineThreeValues() = runTest {
composition {
Div({ style { outline(Color.RGB(0, 20, 100), "dashed", "thick") } })
Div({ style { outline(Color.RGB(0, 100, 20), "double", 4.px) } })
Div({ style { outline(rgb(0, 20, 100), "dashed", "thick") } })
Div({ style { outline(rgb(0, 100, 20), "double", 4.px) } })
Div({ style { outline("red", "outset", "thin") } })
Div({ style { outline("yellow", "inset", 8.px) } })
}

2
web/core/src/jsTest/kotlin/css/CSSTextTests.kt

@ -209,7 +209,7 @@ class CSSTextTests {
})
Div({
style {
textDecorationColor(Color.RGBA(0, 200, 20, 0.85))
textDecorationColor(rgba(0, 200, 20, 0.85))
}
})
}

Loading…
Cancel
Save