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
+20
View File
@@ -0,0 +1,20 @@
package foo
@native interface Summizer {
fun sum(a: Int, b: Int): Int
}
fun getSummizer(): Summizer = js("""
var summizer = {
sum: function(a, b) { return a + b;}
};
return summizer;
""");
fun box(): String {
val summizer = getSummizer()
assertEquals(3, summizer.sum(1, 2))
return "OK"
}