enabled the test cases and turned into a main() to avoid being run by default in unit tests (as we really need to do a maven build first)
This commit is contained in:
+8
-6
@@ -49,15 +49,18 @@ public class CompileMavenGeneratedJSLibrary extends SingleFileTranslationTest {
|
||||
super("kotlin-js-library/");
|
||||
}
|
||||
|
||||
|
||||
public void testDisabled() throws Exception {
|
||||
public static void main(String[] args) throws Exception {
|
||||
CompileMavenGeneratedJSLibrary test = new CompileMavenGeneratedJSLibrary();
|
||||
test.DISABLED_testGenerateTestCase();
|
||||
}
|
||||
|
||||
public void TODO_testGenerateTestCase() throws Exception {
|
||||
public void testDummy() {
|
||||
}
|
||||
|
||||
public void DISABLED_testGenerateTestCase() throws Exception {
|
||||
if (generatedJsLibraryDir.exists() && generatedJsLibraryDir.isDirectory()) {
|
||||
generateJavaScriptFiles(EcmaVersion.all(),
|
||||
"libraries/stdlib/test",
|
||||
/*
|
||||
"dom/DomTest.kt",
|
||||
"js/MapTest.kt",
|
||||
"js/JsDomTest.kt",
|
||||
@@ -66,7 +69,6 @@ public class CompileMavenGeneratedJSLibrary extends SingleFileTranslationTest {
|
||||
"GetOrElseTest.kt",
|
||||
"ListTest.kt",
|
||||
"SetTest.kt",
|
||||
*/
|
||||
"StringTest.kt");
|
||||
|
||||
} else {
|
||||
@@ -113,7 +115,7 @@ public class CompileMavenGeneratedJSLibrary extends SingleFileTranslationTest {
|
||||
} else {
|
||||
String name = child.getName();
|
||||
if (name.toLowerCase().endsWith(".kt")) {
|
||||
files.add(child.getParent());
|
||||
files.add(child.getPath());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user