Fix JS tests failing on Windows
This commit is contained in:
+1
-1
@@ -1,2 +1,2 @@
|
||||
// EXISTS: out.js
|
||||
// CONTAINS: out.js.map, \"©∑\\n\"\n
|
||||
// CONTAINS: out.js.map, \"©∑\\n\"
|
||||
|
||||
+2
-1
@@ -1,3 +1,4 @@
|
||||
// EXISTS: out.js
|
||||
// CONTAINS: out.js.map, "./sourceMap.kt"
|
||||
// CONTAINS: out.js.map, "var log = \"\"\n\nfun foo(x: String) {
|
||||
// CONTAINS: out.js.map, "var log = \"\"
|
||||
// CONTAINS: out.js.map, fun foo(x: String) {
|
||||
|
||||
@@ -718,6 +718,7 @@ public class KotlinTestUtils {
|
||||
String moduleDependencies = matcher.group(2);
|
||||
String moduleFriends = matcher.group(3);
|
||||
if (moduleName != null) {
|
||||
moduleName = moduleName.trim();
|
||||
hasModules = true;
|
||||
module = factory.createModule(moduleName, parseModuleList(moduleDependencies), parseModuleList(moduleFriends));
|
||||
}
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
source(new File(basedir, "../../../verify-common.bsh").getAbsolutePath());
|
||||
|
||||
assertFileContains("target/js/test-js-sourceMapEmbedSources.js.map", "\"org/jetbrains/HelloWorld.kt\"");
|
||||
assertFileContains("target/js/test-js-sourceMapEmbedSources.js.map", "\"package org.jetbrains\\n\\nfun bar() = \\\"OK\\\"");
|
||||
assertFileContains("target/js/test-js-sourceMapEmbedSources.js.map", "\"package org.jetbrains");
|
||||
assertFileContains("target/js/test-js-sourceMapEmbedSources.js.map", "fun bar() = \\\"OK\\\"")
|
||||
|
||||
Reference in New Issue
Block a user