[JS IR BE] Fix and refactor interop tests

This commit is contained in:
Svyatoslav Kuzmich
2019-02-14 19:43:22 +03:00
parent 569187a751
commit a736756ceb
37 changed files with 54 additions and 58 deletions
+2 -4
View File
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1294
package foo
@JsName("AA") object A {
@JsName("foo") fun bar() = "A.foo"
@@ -11,12 +9,12 @@ package foo
}
fun testA() = js("""
var a = JS_TESTS.foo.AA;
var a = JS_TESTS.AA;
return a.foo();
""")
fun testB() = js("""
var b = new JS_TESTS.foo.BB();
var b = new JS_TESTS.BB();
return b.foo();
""")