@@ -282,62 +282,3 @@ private fun zipDirectory(directory: File, zipFile: File) {
282282 KFile (directory.toPath()).zipDirAs(KFile (zipFile.toPath()))
283283}
284284
285- class JsWasmStdlibSpecialCompatibilityChecksTest : LibrarySpecialCompatibilityChecksTest () {
286- override val originalLibraryPath: String
287- get() = System .getProperty(" kotlin.js.full.stdlib.path" )
288-
289- override fun MessageCollectorImpl.hasJsOldLibraryError (specificVersions : Pair <TestVersion , TestVersion >? ): Boolean {
290- val stdlibMessagePart = " Kotlin/JS standard library has an older version" + specificVersions?.first?.let { " ($it )" }.orEmpty()
291- val compilerMessagePart = " than the compiler" + specificVersions?.second?.let { " ($it )" }.orEmpty()
292-
293- return messages.any { stdlibMessagePart in it.message && compilerMessagePart in it.message }
294- }
295-
296- override fun MessageCollectorImpl.hasJsTooNewLibraryError (specificVersions : Pair <TestVersion , TestVersion >? ): Boolean {
297- val stdlibMessagePart =
298- " The Kotlin/JS standard library has a more recent version" + specificVersions?.first?.let { " ($it )" }.orEmpty()
299- val compilerMessagePart = " The compiler version is " + specificVersions?.second?.toString().orEmpty()
300-
301- return messages.any { stdlibMessagePart in it.message && compilerMessagePart in it.message }
302- }
303-
304- override fun MessageCollectorImpl.hasWasmError (specificVersions : Pair <TestVersion , TestVersion >? ): Boolean {
305- val stdlibMessagePart = " The version of the Kotlin/Wasm standard library" + specificVersions?.first?.let { " ($it )" }.orEmpty()
306- val compilerMessagePart = " differs from the version of the compiler" + specificVersions?.second?.let { " ($it )" }.orEmpty()
307-
308- return messages.any { stdlibMessagePart in it.message && compilerMessagePart in it.message }
309- }
310- }
311-
312- class JsWasmTestLibSpecialCompatibilityChecksTest : LibrarySpecialCompatibilityChecksTest () {
313- override val originalLibraryPath: String
314- get() = System .getProperty(" kotlin.js.full.test.path" )
315-
316- override fun additionalLibraries (isWasm : Boolean ): List <String > =
317- if (! isWasm) listOf (System .getProperty(" kotlin.js.full.stdlib.path" )) else listOf (System .getProperty(" kotlin.wasm.full.stdlib.path" ))
318-
319- override fun MessageCollectorImpl.hasJsOldLibraryError (
320- specificVersions : Pair <TestVersion , TestVersion >? ,
321- ): Boolean {
322- val stdlibMessagePart = " Kotlin/JS kotlin-test library has an older version" + specificVersions?.first?.let { " ($it )" }.orEmpty()
323- val compilerMessagePart = " than the compiler" + specificVersions?.second?.let { " ($it )" }.orEmpty()
324-
325- return messages.any { stdlibMessagePart in it.message && compilerMessagePart in it.message }
326- }
327-
328- override fun MessageCollectorImpl.hasJsTooNewLibraryError (specificVersions : Pair <TestVersion , TestVersion >? ): Boolean {
329- val stdlibMessagePart =
330- " The Kotlin/JS kotlin-test library has a more recent version" + specificVersions?.first?.let { " ($it )" }.orEmpty()
331- val compilerMessagePart = " The compiler version is " + specificVersions?.second?.toString().orEmpty()
332-
333- return messages.any { stdlibMessagePart in it.message && compilerMessagePart in it.message }
334- }
335-
336- override fun MessageCollectorImpl.hasWasmError (specificVersions : Pair <TestVersion , TestVersion >? ): Boolean {
337- val stdlibMessagePart =
338- " The version of the Kotlin/Wasm kotlin-test library" + specificVersions?.first?.let { " ($it )" }.orEmpty()
339- val compilerMessagePart = " differs from the version of the compiler" + specificVersions?.second?.let { " ($it )" }.orEmpty()
340-
341- return messages.any { stdlibMessagePart in it.message && compilerMessagePart in it.message }
342- }
343- }
0 commit comments