f91c01919b
Js tests now fail at the first failed assertion. #KT-10289 Fixed #KT-10369 Fixed
18 lines
404 B
Kotlin
Vendored
18 lines
404 B
Kotlin
Vendored
package kotlin.test
|
|
|
|
import kotlin.test.*
|
|
|
|
fun init() {
|
|
asserter = JsTestsAsserter()
|
|
}
|
|
|
|
public class JsTestsAsserter() : Asserter {
|
|
public override fun fail(message: String?): Nothing = failWithMessage(message)
|
|
}
|
|
|
|
@native("JsTests.assert")
|
|
public fun assert(value: Boolean, message: String?): Unit = noImpl
|
|
|
|
@native("JsTests.fail")
|
|
private fun failWithMessage(message: String?): Nothing = noImpl
|