JS: move more test to box tests

This commit is contained in:
Alexey Andreev
2016-08-29 12:37:13 +03:00
parent efb82a044f
commit cdf2212c73
70 changed files with 484 additions and 749 deletions
+15
View File
@@ -0,0 +1,15 @@
package foo
@native interface Summizer {
fun sum(a: Int, b: Int): Int
}
fun box(): String {
val summizer1: Summizer = js("({ sum: function(a, b) { return a + b; }})")
assertEquals(3, summizer1.sum(1, 2), "summizer1")
val summizer2: Summizer = js("({ sum: function(a, b) { return a + b; }})")
assertEquals(3, summizer2.sum(1, 2), "summizer2")
return "OK";
}