Skip to content

Commit 5016226

Browse files
committed
[JS TESTS] Add EP to disable run test on specific platform
1 parent fe047f9 commit 5016226

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

js/js.tests/test/org/jetbrains/kotlin/js/test/BasicBoxTest.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ abstract class BasicBoxTest(
105105
doTest(filePath, "OK", MainCallParameters.noCall(), coroutinesPackage)
106106
}
107107

108+
open fun dontRunOnSpecificPlatform(targetBackend: TargetBackend): Boolean = false
109+
108110
open fun doTest(filePath: String, expectedResult: String, mainCallParameters: MainCallParameters, coroutinesPackage: String = "") {
109111
val file = File(filePath)
110112
val outputDir = getOutputDir(file)
@@ -231,7 +233,7 @@ abstract class BasicBoxTest(
231233
globalCommonFiles + localCommonFiles + additionalCommonFiles + additionalMainFiles
232234

233235

234-
val dontRunGeneratedCode = InTextDirectivesUtils.dontRunGeneratedCode(targetBackend, file)
236+
val dontRunGeneratedCode = InTextDirectivesUtils.dontRunGeneratedCode(targetBackend, file) || dontRunOnSpecificPlatform(targetBackend)
235237

236238
if (!dontRunGeneratedCode && generateNodeJsRunner && !SKIP_NODE_JS.matcher(fileContent).find()) {
237239
val nodeRunnerName = mainModule.outputFileName(outputDir) + ".node.js"

0 commit comments

Comments
 (0)