From 20cc7196c8c7913efd96c275db2a03f35607c55a Mon Sep 17 00:00:00 2001 From: Svyatoslav Kuzmich Date: Sat, 9 Oct 2021 15:18:37 +0300 Subject: [PATCH] [Wasm][Minor] Remove unused doTestWithCoroutinesPackageReplacement --- .../kotlin/js/test/BasicWasmBoxTest.kt | 24 +++++++++++++++---- 1 file changed, 19 insertions(+), 5 deletions(-) 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()