diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/BasicWasmBoxTest.kt b/js/js.tests/test/org/jetbrains/kotlin/js/test/BasicWasmBoxTest.kt index 0c532a6ab3b..cefc44179e5 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/js/test/BasicWasmBoxTest.kt +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/BasicWasmBoxTest.kt @@ -47,11 +47,6 @@ abstract class BasicWasmBoxTest( private val spiderMonkey by lazy { SpiderMonkeyEngine() } - @Suppress("UNUSED_PARAMETER") - fun doTestWithCoroutinesPackageReplacement(filePath: String, coroutinesPackage: String) { - TODO("TestWithCoroutinesPackageReplacement are not supported") - } - fun doTest(filePath: String) { val file = File(filePath) @@ -211,6 +206,25 @@ abstract class BasicWasmBoxTest( throw `Wrong box result '${'$'}{actualResult}'; Expected "OK"`; """.trimIndent() + directory.mkdirs() + + File(directory, "index.html").writeText( + """ + + +
+ + + + """.trimIndent() + ) + File(directory, "index.js").writeText( + compilerResult.js + "\n" + browserRunner + ) + File(directory, "index.wasm").writeBytes( + compilerResult.wasm + ) + } private fun createConfig(languageVersionSettings: LanguageVersionSettings?): JsConfig { val configuration = environment.configuration.copy()