JS: error message (not exception) for incompatible abi version during compilation
This commit is contained in:
@@ -285,5 +285,11 @@ public class KotlincExecutableTestGenerated extends AbstractKotlincExecutableTes
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/cli/js/withLib.args");
|
||||
doJsTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("wrongAbiVersion.args")
|
||||
public void testWrongAbiVersion() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/cli/js/wrongAbiVersion.args");
|
||||
doJsTest(fileName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,6 +51,13 @@ public class K2JsCliTest extends CliBaseTest {
|
||||
Assert.assertFalse(new File(tmpdir.getTmpDir(), "out.js").exists());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void wrongAbiVersion() throws Exception {
|
||||
executeCompilerCompareOutputJS();
|
||||
|
||||
Assert.assertFalse(new File(tmpdir.getTmpDir(), "out.js").exists());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void jsHelp() throws Exception {
|
||||
executeCompilerCompareOutputJS();
|
||||
|
||||
Reference in New Issue
Block a user