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:
James Strachan
2012-07-05 11:04:15 +01:00
parent c166a38f22
commit dc4952c8b1
@@ -49,15 +49,18 @@ public class CompileMavenGeneratedJSLibrary extends SingleFileTranslationTest {
super("kotlin-js-library/"); super("kotlin-js-library/");
} }
public static void main(String[] args) throws Exception {
public void testDisabled() 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()) { if (generatedJsLibraryDir.exists() && generatedJsLibraryDir.isDirectory()) {
generateJavaScriptFiles(EcmaVersion.all(), generateJavaScriptFiles(EcmaVersion.all(),
"libraries/stdlib/test", "libraries/stdlib/test",
/*
"dom/DomTest.kt", "dom/DomTest.kt",
"js/MapTest.kt", "js/MapTest.kt",
"js/JsDomTest.kt", "js/JsDomTest.kt",
@@ -66,7 +69,6 @@ public class CompileMavenGeneratedJSLibrary extends SingleFileTranslationTest {
"GetOrElseTest.kt", "GetOrElseTest.kt",
"ListTest.kt", "ListTest.kt",
"SetTest.kt", "SetTest.kt",
*/
"StringTest.kt"); "StringTest.kt");
} else { } else {
@@ -113,7 +115,7 @@ public class CompileMavenGeneratedJSLibrary extends SingleFileTranslationTest {
} else { } else {
String name = child.getName(); String name = child.getName();
if (name.toLowerCase().endsWith(".kt")) { if (name.toLowerCase().endsWith(".kt")) {
files.add(child.getParent()); files.add(child.getPath());
} }
} }
} }