[Tests] Drop DCE tests
^KT-44602
This commit is contained in:
committed by
Space Team
parent
e03af07a1c
commit
0ae7c66fc8
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.js.testOld;
|
||||
|
||||
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;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.GenerateJsTestsKt}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("js/js.translator/testData/dce")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class DceTestGenerated extends AbstractDceTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDce() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/dce"), Pattern.compile("(.+)\\.js"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("amd.js")
|
||||
public void testAmd() {
|
||||
runTest("js/js.translator/testData/dce/amd.js");
|
||||
}
|
||||
|
||||
@TestMetadata("arrayAccess.js")
|
||||
public void testArrayAccess() {
|
||||
runTest("js/js.translator/testData/dce/arrayAccess.js");
|
||||
}
|
||||
|
||||
@TestMetadata("commonjs.js")
|
||||
public void testCommonjs() {
|
||||
runTest("js/js.translator/testData/dce/commonjs.js");
|
||||
}
|
||||
|
||||
@TestMetadata("cycle.js")
|
||||
public void testCycle() {
|
||||
runTest("js/js.translator/testData/dce/cycle.js");
|
||||
}
|
||||
|
||||
@TestMetadata("localVarAndFunction.js")
|
||||
public void testLocalVarAndFunction() {
|
||||
runTest("js/js.translator/testData/dce/localVarAndFunction.js");
|
||||
}
|
||||
|
||||
@TestMetadata("typeOf.js")
|
||||
public void testTypeOf() {
|
||||
runTest("js/js.translator/testData/dce/typeOf.js");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user