Skip to content

Commit 232bd45

Browse files
committed
Remove JS test that fails
1 parent bde662e commit 232bd45

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

core/src/test/kotlin/com/tschuchort/compiletesting/KotlinJsCompilationTests.kt

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -78,27 +78,6 @@ class KotlinJsCompilationTests {
7878
assertThat(jsFile.readText()).contains("function KSource_0() {")
7979
}
8080

81-
@Test
82-
fun `Kotlin can access browser window`() {
83-
val source = SourceFile.kotlin("kSource.kt", """
84-
import kotlinx.browser.window
85-
86-
fun main(addKotlincArgs: Array<String>) {
87-
println(window.document)
88-
}
89-
""")
90-
91-
val result = defaultJsCompilerConfig().apply {
92-
sources = listOf(source)
93-
}.compile()
94-
95-
assertThat(result.exitCode).isEqualTo(ExitCode.OK)
96-
assertThat(result.compiledClassAndResourceFiles).hasSize(1)
97-
val jsFile = result.compiledClassAndResourceFiles[0]
98-
println(jsFile.readText())
99-
assertThat(jsFile.readText()).contains("println(window.document);")
100-
}
101-
10281
@Test
10382
fun `detects the plugin provided for compilation via pluginClasspaths property`() {
10483
val result = defaultJsCompilerConfig().apply {

0 commit comments

Comments
 (0)