JS: removed cli test for js() errors
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
$TESTDATA_DIR$/jsCodeError.kt
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
@@ -1,2 +0,0 @@
|
||||
fun f1(): Unit = js("var = 10;")
|
||||
fun f2(): Unit = js("""var = 10;""")
|
||||
@@ -1,3 +0,0 @@
|
||||
ERROR: compiler/testData/cli/js/jsCodeError.kt: (1, 25) JavaScript: missing variable name
|
||||
ERROR: compiler/testData/cli/js/jsCodeError.kt: (2, 27) JavaScript: missing variable name
|
||||
COMPILATION_ERROR
|
||||
@@ -1,3 +0,0 @@
|
||||
$TESTDATA_DIR$/jsCodeNotLiteralError.kt
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
@@ -1,3 +0,0 @@
|
||||
val s = "1 + 1;"
|
||||
fun two(): Int = js(s)
|
||||
fun three(): Int = js("1" + "+ 2;")
|
||||
@@ -1,3 +0,0 @@
|
||||
ERROR: compiler/testData/cli/js/jsCodeNotLiteralError.kt: (2, 18) Argument must be string literal
|
||||
ERROR: compiler/testData/cli/js/jsCodeNotLiteralError.kt: (3, 20) Argument must be string literal
|
||||
COMPILATION_ERROR
|
||||
@@ -1,3 +0,0 @@
|
||||
$TESTDATA_DIR$/jsCodeWarning.kt
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
@@ -1 +0,0 @@
|
||||
fun main(args: Array<String>): Unit = js("var a = 08;")
|
||||
@@ -1,2 +0,0 @@
|
||||
WARNING: compiler/testData/cli/js/jsCodeWarning.kt: (1, 50) JavaScript: illegal octal literal digit 8; interpreting it as a decimal digit
|
||||
OK
|
||||
Reference in New Issue
Block a user