Unverified Commit c479fc9b authored by Shagen Ogandzhanian's avatar Shagen Ogandzhanian Committed by GitHub

Run invalidUnicode for js target, introduce additional test for Paragraph (#981)

parent dc80eb4d
......@@ -87,7 +87,6 @@ class ParagraphTest {
}
@Test
@SkipJsTarget // FIXME Emscripten's stringToUTF8 function does not correctly handle invalid unicode symbols.
fun invalidUnicode() = runTest {
val invalidUnicodeText = "🦊qwerty".substring(1)
......@@ -98,6 +97,17 @@ class ParagraphTest {
assertEquals(1, paragraph.lineNumber)
}
@Test
fun emptyString() = runTest {
// https://github.com/JetBrains/skiko/issues/963
val paragraph = ParagraphBuilder(style, fontCollection())
.pushStyle(TextStyle())
.addText("")
.popStyle()
.build()
assertEquals("", paragraph.getText())
}
@Test
fun canCreate() = runTest {
val text = "Hello,\n Пользователь1!"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment