[Wasm] K2 port of definedExternally diagnostic (KT-56849)

This commit is contained in:
Svyatoslav Kuzmich
2023-10-25 16:37:30 +02:00
committed by Space Team
parent 847178d382
commit a8e5655ffe
9 changed files with 98 additions and 4 deletions
@@ -33,6 +33,12 @@ public class DiagnosticsFirWasmTestGenerated extends AbstractDiagnosticsFirWasmT
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/wasmTests/jsInterop"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@Test
@TestMetadata("definedExternally.kt")
public void testDefinedExternally() throws Exception {
runTest("compiler/testData/diagnostics/wasmTests/jsInterop/definedExternally.kt");
}
@Test
@TestMetadata("dynamicUnsupported.kt")
public void testDynamicUnsupported() throws Exception {
@@ -33,6 +33,12 @@ public class DiagnosticsWasmTestGenerated extends AbstractDiagnosticsWasmTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/wasmTests/jsInterop"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@Test
@TestMetadata("definedExternally.kt")
public void testDefinedExternally() throws Exception {
runTest("compiler/testData/diagnostics/wasmTests/jsInterop/definedExternally.kt");
}
@Test
@TestMetadata("dynamicUnsupported.kt")
public void testDynamicUnsupported() throws Exception {