[tests][FIR][checkers][Wasm] Improve test coverage for WRONG_JS_INTEROP_TYPE

This commit is contained in:
Stanislav Ruban
2024-03-10 23:02:00 +02:00
committed by Space Team
parent eaa50fbf37
commit b165ff675b
9 changed files with 945 additions and 238 deletions
@@ -51,6 +51,18 @@ public class DiagnosticsFirWasmTestGenerated extends AbstractDiagnosticsFirWasmT
runTest("compiler/testData/diagnostics/wasmTests/jsInterop/body.kt");
}
@Test
@TestMetadata("complexCasesWithJsInteropTypes.kt")
public void testComplexCasesWithJsInteropTypes() {
runTest("compiler/testData/diagnostics/wasmTests/jsInterop/complexCasesWithJsInteropTypes.kt");
}
@Test
@TestMetadata("correctJsInteropTypes.kt")
public void testCorrectJsInteropTypes() {
runTest("compiler/testData/diagnostics/wasmTests/jsInterop/correctJsInteropTypes.kt");
}
@Test
@TestMetadata("definedExternally.kt")
public void testDefinedExternally() {
@@ -124,9 +136,9 @@ public class DiagnosticsFirWasmTestGenerated extends AbstractDiagnosticsFirWasmT
}
@Test
@TestMetadata("types.kt")
public void testTypes() {
runTest("compiler/testData/diagnostics/wasmTests/jsInterop/types.kt");
@TestMetadata("wrongJsInteropTypes.kt")
public void testWrongJsInteropTypes() {
runTest("compiler/testData/diagnostics/wasmTests/jsInterop/wrongJsInteropTypes.kt");
}
@Test
@@ -51,6 +51,18 @@ public class DiagnosticsWasmTestGenerated extends AbstractDiagnosticsWasmTest {
runTest("compiler/testData/diagnostics/wasmTests/jsInterop/body.kt");
}
@Test
@TestMetadata("complexCasesWithJsInteropTypes.kt")
public void testComplexCasesWithJsInteropTypes() {
runTest("compiler/testData/diagnostics/wasmTests/jsInterop/complexCasesWithJsInteropTypes.kt");
}
@Test
@TestMetadata("correctJsInteropTypes.kt")
public void testCorrectJsInteropTypes() {
runTest("compiler/testData/diagnostics/wasmTests/jsInterop/correctJsInteropTypes.kt");
}
@Test
@TestMetadata("definedExternally.kt")
public void testDefinedExternally() {
@@ -124,9 +136,9 @@ public class DiagnosticsWasmTestGenerated extends AbstractDiagnosticsWasmTest {
}
@Test
@TestMetadata("types.kt")
public void testTypes() {
runTest("compiler/testData/diagnostics/wasmTests/jsInterop/types.kt");
@TestMetadata("wrongJsInteropTypes.kt")
public void testWrongJsInteropTypes() {
runTest("compiler/testData/diagnostics/wasmTests/jsInterop/wrongJsInteropTypes.kt");
}
@Test