JS: fix issues with js() usage in inline functions

This commit is contained in:
Alexey Tsvetkov
2015-03-13 14:51:38 +03:00
parent 5ff5cea17a
commit 1557111277
11 changed files with 151 additions and 21 deletions
@@ -198,6 +198,18 @@ public class InlineJsTestGenerated extends AbstractInlineJsTest {
doTest(fileName);
}
@TestMetadata("jsCode.kt")
public void testJsCode() throws Exception {
String fileName = JetTestUtils.navigationMetadata("js/js.translator/testData/inline/cases/jsCode.kt");
doTest(fileName);
}
@TestMetadata("jsCodeVarDeclared.kt")
public void testJsCodeVarDeclared() throws Exception {
String fileName = JetTestUtils.navigationMetadata("js/js.translator/testData/inline/cases/jsCodeVarDeclared.kt");
doTest(fileName);
}
@TestMetadata("lambdaInLambda.kt")
public void testLambdaInLambda() throws Exception {
String fileName = JetTestUtils.navigationMetadata("js/js.translator/testData/inline/cases/lambdaInLambda.kt");
@@ -102,6 +102,12 @@ public class JsCodeTestGenerated extends AbstractJsCodeTest {
doTest(fileName);
}
@TestMetadata("labelNestedClashWithKotlin.kt")
public void testLabelNestedClashWithKotlin() throws Exception {
String fileName = JetTestUtils.navigationMetadata("js/js.translator/testData/jsCode/cases/labelNestedClashWithKotlin.kt");
doTest(fileName);
}
@TestMetadata("labelSiblingClash.kt")
public void testLabelSiblingClash() throws Exception {
String fileName = JetTestUtils.navigationMetadata("js/js.translator/testData/jsCode/cases/labelSiblingClash.kt");