Tests: remove TargetBackend.JVM_OLD
TargetBackend.JVM is equivalent to it at this point.
This commit is contained in:
committed by
Space Team
parent
dd3bebb690
commit
eeef70b2c8
+3
-7
@@ -9,6 +9,7 @@ import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.util.KtTestUtil;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
@@ -22,16 +23,11 @@ import java.util.regex.Pattern;
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class CustomScriptCodegenTestGenerated extends AbstractCustomScriptCodegenTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCustomScript() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/customScript"), Pattern.compile("^(.*)$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("captureImplicitReceiverInDefaultValue.kts")
|
||||
public void testCaptureImplicitReceiverInDefaultValue_kts() throws Exception {
|
||||
runTest("compiler/testData/codegen/customScript/captureImplicitReceiverInDefaultValue.kts");
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/customScript"), Pattern.compile("^(.*)$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("pathPattern5.kts")
|
||||
|
||||
Reference in New Issue
Block a user