JS: move more test to box tests

This commit is contained in:
Alexey Andreev
2016-08-30 13:59:50 +03:00
parent 9bf124af3f
commit 7e2d5b04de
68 changed files with 607 additions and 578 deletions
@@ -0,0 +1,25 @@
package foo
interface Foo {
fun execute(handler: () -> Unit) {
execute(false, handler)
}
fun execute(onlyIfAttached: Boolean, handler: () -> Unit)
}
object foo : Foo {
override fun execute(onlyIfAttached: Boolean, handler: () -> Unit) {
handler()
}
}
private var result = "fail"
fun box(): String {
foo.execute() {
result = "OK"
}
return result
}