Skip to content

Commit

Permalink
Remove JS test that fails
Browse files Browse the repository at this point in the history
  • Loading branch information
BoD committed Aug 7, 2023
1 parent bde662e commit 232bd45
Showing 1 changed file with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,27 +78,6 @@ class KotlinJsCompilationTests {
assertThat(jsFile.readText()).contains("function KSource_0() {")
}

@Test
fun `Kotlin can access browser window`() {
val source = SourceFile.kotlin("kSource.kt", """
import kotlinx.browser.window
fun main(addKotlincArgs: Array<String>) {
println(window.document)
}
""")

val result = defaultJsCompilerConfig().apply {
sources = listOf(source)
}.compile()

assertThat(result.exitCode).isEqualTo(ExitCode.OK)
assertThat(result.compiledClassAndResourceFiles).hasSize(1)
val jsFile = result.compiledClassAndResourceFiles[0]
println(jsFile.readText())
assertThat(jsFile.readText()).contains("println(window.document);")
}

@Test
fun `detects the plugin provided for compilation via pluginClasspaths property`() {
val result = defaultJsCompilerConfig().apply {
Expand Down

0 comments on commit 232bd45

Please sign in to comment.