JS backend: added jsCode test cases

This commit is contained in:
Alexey Tsvetkov
2014-12-09 13:46:01 +03:00
parent 97bbcab77d
commit c3f67c54bd
32 changed files with 657 additions and 0 deletions
@@ -156,6 +156,24 @@ public class KotlincExecutableTestGenerated extends AbstractKotlincExecutableTes
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/cli/js"), Pattern.compile("^(.+)\\.args$"), false);
}
@TestMetadata("jsCodeError.args")
public void testJsCodeError() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/cli/js/jsCodeError.args");
doJsTest(fileName);
}
@TestMetadata("jsCodeNotLiteralError.args")
public void testJsCodeNotLiteralError() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/cli/js/jsCodeNotLiteralError.args");
doJsTest(fileName);
}
@TestMetadata("jsCodeWarning.args")
public void testJsCodeWarning() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/cli/js/jsCodeWarning.args");
doJsTest(fileName);
}
@TestMetadata("jsExtraHelp.args")
public void testJsExtraHelp() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/cli/js/jsExtraHelp.args");
@@ -90,4 +90,19 @@ public class K2JsCliTest extends CliBaseTest {
Assert.assertFalse(new File(tmpdir.getTmpDir(), "out.js").isFile());
}
@Test
public void jsCodeError() throws Exception {
executeCompilerCompareOutputJS();
}
@Test
public void jsCodeWarning() throws Exception {
executeCompilerCompareOutputJS();
}
@Test
public void jsCodeNotLiteralError() throws Exception {
executeCompilerCompareOutputJS();
}
}