made the test case fail if there is a compile error - and temporarily commented out a few JS library files that don't compile yet
This commit is contained in:
@@ -18,6 +18,7 @@ package org.jetbrains.k2js.test.semantics;
|
|||||||
|
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
import org.jetbrains.jet.cli.common.ExitCode;
|
||||||
import org.jetbrains.jet.cli.js.K2JSCompiler;
|
import org.jetbrains.jet.cli.js.K2JSCompiler;
|
||||||
import org.jetbrains.jet.cli.js.K2JSCompilerArguments;
|
import org.jetbrains.jet.cli.js.K2JSCompilerArguments;
|
||||||
import org.jetbrains.k2js.config.Config;
|
import org.jetbrains.k2js.config.Config;
|
||||||
@@ -71,7 +72,8 @@ public final class StdLibToJSTest extends SingleFileTranslationTest {
|
|||||||
arguments.outputFile = getOutputFilePath(getTestName(false) + ".compiler.kt", version);
|
arguments.outputFile = getOutputFilePath(getTestName(false) + ".compiler.kt", version);
|
||||||
arguments.sourceFiles = files;
|
arguments.sourceFiles = files;
|
||||||
arguments.verbose = true;
|
arguments.verbose = true;
|
||||||
compiler.exec(System.out, arguments);
|
ExitCode answer = compiler.exec(System.out, arguments);
|
||||||
|
assertEquals("Compile failed", ExitCode.OK, answer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,11 +64,12 @@ public abstract class Config {
|
|||||||
"/raphael/raphael.kt",
|
"/raphael/raphael.kt",
|
||||||
"/stdlib/JUMaps.kt",
|
"/stdlib/JUMaps.kt",
|
||||||
"/stdlib/browser.kt",
|
"/stdlib/browser.kt",
|
||||||
"/core/dom.kt",
|
"/core/dom.kt"
|
||||||
"/dom/domcore.kt",
|
// TODO doesn't compile yet
|
||||||
"/dom/html/htmlcore.kt",
|
// "/dom/domcore.kt",
|
||||||
"/dom/html/window.kt",
|
// "/dom/html/htmlcore.kt",
|
||||||
"/dom/html5/canvas.kt"
|
//"/dom/html5/canvas.kt"
|
||||||
|
//"/dom/html/window.kt"
|
||||||
);
|
);
|
||||||
|
|
||||||
public static final String LIBRARIES_LOCATION = "js/js.libraries/src";
|
public static final String LIBRARIES_LOCATION = "js/js.libraries/src";
|
||||||
|
|||||||
Reference in New Issue
Block a user