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 org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.jet.cli.common.ExitCode;
|
||||
import org.jetbrains.jet.cli.js.K2JSCompiler;
|
||||
import org.jetbrains.jet.cli.js.K2JSCompilerArguments;
|
||||
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.sourceFiles = files;
|
||||
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",
|
||||
"/stdlib/JUMaps.kt",
|
||||
"/stdlib/browser.kt",
|
||||
"/core/dom.kt",
|
||||
"/dom/domcore.kt",
|
||||
"/dom/html/htmlcore.kt",
|
||||
"/dom/html/window.kt",
|
||||
"/dom/html5/canvas.kt"
|
||||
"/core/dom.kt"
|
||||
// TODO doesn't compile yet
|
||||
// "/dom/domcore.kt",
|
||||
// "/dom/html/htmlcore.kt",
|
||||
//"/dom/html5/canvas.kt"
|
||||
//"/dom/html/window.kt"
|
||||
);
|
||||
|
||||
public static final String LIBRARIES_LOCATION = "js/js.libraries/src";
|
||||
|
||||
Reference in New Issue
Block a user