From a0fa69c0007458329570aae564aad71a1d83dc9e Mon Sep 17 00:00:00 2001 From: Alexey Tsvetkov Date: Fri, 14 Oct 2016 16:00:02 +0300 Subject: [PATCH] Do not check the content of JS file in Gradle test --- .../jetbrains/kotlin/gradle/Kotlin2JsGradlePluginIT.kt | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/Kotlin2JsGradlePluginIT.kt b/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/Kotlin2JsGradlePluginIT.kt index 39070d3c47f..a642728a622 100644 --- a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/Kotlin2JsGradlePluginIT.kt +++ b/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/Kotlin2JsGradlePluginIT.kt @@ -22,14 +22,6 @@ class Kotlin2JsGradlePluginIT : BaseGradleIT() { "libraryProject/build/kotlin2js/main/test-library.js", "mainProject/web/js/app.js.map" ).forEach { assertFileExists(it) } - - - // TODO Should be updated to `new _.example.library.Counter` once namespaced imports from libraryFiles are implemented - // TODO It would be better to test these by behavior instead of implementation, for example by loading the files - // into Rhino and running assertions on that. See https://github.com/abesto/kotlin/commit/120ec1bda3d95630189d4d33d0b2afb4253b5186 - // for the (original) discussion on this. - assertFileContains("libraryProject/build/kotlin2js/main/test-library.js", "Counter: Kotlin.createClass") - assertFileContains("mainProject/web/js/app.js", "var counter = new \$module\$test_library.example.library.Counter(counterText);") } project.build("build") {