From 7b76fa6103a075dc1228c811f4678b95af8da940 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Tue, 19 Apr 2016 18:14:18 +0300 Subject: [PATCH] KT-11030 Remove tests for diagnostics for local classes in JS backend --- .../unsupportedFeatures/localClassifier.kt | 14 -------------- .../unsupportedFeatures/localClassifier.txt | 3 --- .../DiagnosticsTestWithJsStdLibGenerated.java | 15 --------------- 3 files changed, 32 deletions(-) delete mode 100644 compiler/testData/diagnostics/testsWithJsStdLib/unsupportedFeatures/localClassifier.kt delete mode 100644 compiler/testData/diagnostics/testsWithJsStdLib/unsupportedFeatures/localClassifier.txt diff --git a/compiler/testData/diagnostics/testsWithJsStdLib/unsupportedFeatures/localClassifier.kt b/compiler/testData/diagnostics/testsWithJsStdLib/unsupportedFeatures/localClassifier.kt deleted file mode 100644 index 1ef0273bbe6..00000000000 --- a/compiler/testData/diagnostics/testsWithJsStdLib/unsupportedFeatures/localClassifier.kt +++ /dev/null @@ -1,14 +0,0 @@ -fun foo() { - class A { - inner class E { - interface T - } - } - - interface T { - } - - object { - inner class B - } -} diff --git a/compiler/testData/diagnostics/testsWithJsStdLib/unsupportedFeatures/localClassifier.txt b/compiler/testData/diagnostics/testsWithJsStdLib/unsupportedFeatures/localClassifier.txt deleted file mode 100644 index 65a6ac47e1f..00000000000 --- a/compiler/testData/diagnostics/testsWithJsStdLib/unsupportedFeatures/localClassifier.txt +++ /dev/null @@ -1,3 +0,0 @@ -package - -public fun foo(): kotlin.Unit diff --git a/compiler/tests/org/jetbrains/kotlin/checkers/DiagnosticsTestWithJsStdLibGenerated.java b/compiler/tests/org/jetbrains/kotlin/checkers/DiagnosticsTestWithJsStdLibGenerated.java index 310cc30c33d..a804810449c 100644 --- a/compiler/tests/org/jetbrains/kotlin/checkers/DiagnosticsTestWithJsStdLibGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/checkers/DiagnosticsTestWithJsStdLibGenerated.java @@ -571,19 +571,4 @@ public class DiagnosticsTestWithJsStdLibGenerated extends AbstractDiagnosticsTes } } } - - @TestMetadata("compiler/testData/diagnostics/testsWithJsStdLib/unsupportedFeatures") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class UnsupportedFeatures extends AbstractDiagnosticsTestWithJsStdLib { - public void testAllFilesPresentInUnsupportedFeatures() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLib/unsupportedFeatures"), Pattern.compile("^(.+)\\.kt$"), true); - } - - @TestMetadata("localClassifier.kt") - public void testLocalClassifier() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithJsStdLib/unsupportedFeatures/localClassifier.kt"); - doTest(fileName); - } - } }