[JS IR] Add tests for JS code KLIB diagnostics

^KT-62425
This commit is contained in:
Alexander Korepanov
2023-10-11 12:19:27 +02:00
committed by Space Team
parent 261527939b
commit 4ebfed04d3
22 changed files with 1223 additions and 0 deletions
@@ -0,0 +1,19 @@
// FIR_IDENTICAL
// ERROR_POLICY: SEMANTIC
fun testEmptyString() {
js(<!JSCODE_NO_JAVASCRIPT_PRODUCED!>""<!>)
}
const val SPACE = " "
fun testStringWithSpaces() {
js(<!JSCODE_NO_JAVASCRIPT_PRODUCED!>"\n \n$SPACE \t" + " "<!>)
}
fun testComment() {
js(<!JSCODE_NO_JAVASCRIPT_PRODUCED!>"""
// just a comment
$SPACE
"""<!>)
}