JS: added js() diagnostics tests

This commit is contained in:
Alexey Tsvetkov
2015-02-19 12:12:15 +03:00
parent 1e7de9d5d0
commit fabcfc7b7f
22 changed files with 344 additions and 24 deletions
@@ -0,0 +1,19 @@
val a = "1"
fun nonConst(): String = "1"
fun test() {
val b = "b"
js(a)
js(b)
js("$a")
js("${1}")
js("$b;")
js("${b}bb")
js(a + a)
js("a" + "a")
js("ccc")
js(<!JSCODE_ARGUMENT_SHOULD_BE_CONSTANT!>nonConst()<!>)
}