JS: add checker to detect non-external declarations in files marked by JsModule or JsQualifier annotation

This commit is contained in:
Alexey Andreev
2017-01-24 15:34:57 +03:00
parent cc67f6c9f7
commit ba65e58fdd
13 changed files with 132 additions and 4 deletions
@@ -383,6 +383,12 @@ public class DiagnosticsTestWithJsStdLibGenerated extends AbstractDiagnosticsTes
doTest(fileName);
}
@TestMetadata("jsModuleNonExternal.kt")
public void testJsModuleNonExternal() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithJsStdLib/module/jsModuleNonExternal.kt");
doTest(fileName);
}
@TestMetadata("jsModuleWithoutParameters.kt")
public void testJsModuleWithoutParameters() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithJsStdLib/module/jsModuleWithoutParameters.kt");