JS backend: added tests for KT-4159.

This commit is contained in:
Alexey Tsvetkov
2014-03-12 04:35:57 +04:00
committed by Zalim Bashorov
parent 569f139d8a
commit 21f87350b9
4 changed files with 106 additions and 3 deletions
@@ -66,7 +66,6 @@ public final class MiscTest extends AbstractExpressionTest {
checkOutput("KT-1052.kt", "true\n");
}
public void testKt740_1() throws Exception {
checkFooBoxIsTrue("KT-740.kt");
}
@@ -123,6 +122,18 @@ public final class MiscTest extends AbstractExpressionTest {
fooBoxTest();
}
public void testElvisReturnSimple() throws Exception {
checkFooBoxIsOk();
}
public void testElvisReturnNested() throws Exception {
checkFooBoxIsOk();
}
public void testElvisWithThrow() throws Exception {
checkFooBoxIsOk();
}
public void testExtensionLiteralCalledInsideExtensionFunction() throws Exception {
fooBoxTest();
}
@@ -135,12 +146,10 @@ public final class MiscTest extends AbstractExpressionTest {
checkOutput("mainFunInNestedPackage.kt", "ayee");
}
public void testPropertiesWithExplicitlyDefinedAccessorsWithoutBodies() throws Exception {
fooBoxTest();
}
public void testExclExcl() throws Exception {
fooBoxTest();
}