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/");
}
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());
}
}
}