JS: add tests for private external declarations

This commit is contained in:
Alexey Andreev
2017-02-10 20:42:32 +03:00
parent 8d2dac4577
commit f82f5d0471
3 changed files with 12 additions and 0 deletions
@@ -6008,6 +6008,12 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
doTest(fileName);
}
@TestMetadata("privateExternal.kt")
public void testPrivateExternal() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/native/privateExternal.kt");
doTest(fileName);
}
@TestMetadata("safeCastToNativeInterface.kt")
public void testSafeCastToNativeInterface() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/native/safeCastToNativeInterface.kt");
@@ -0,0 +1,3 @@
function foo() {
return "OK";
}
@@ -0,0 +1,3 @@
private external fun foo(): String
fun box() = foo()