diff --git a/idea/tests/org/jetbrains/kotlin/psi/KotlinInjectionTest.kt b/idea/tests/org/jetbrains/kotlin/psi/KotlinInjectionTest.kt index 66c8acab120..79cb5b9cee7 100644 --- a/idea/tests/org/jetbrains/kotlin/psi/KotlinInjectionTest.kt +++ b/idea/tests/org/jetbrains/kotlin/psi/KotlinInjectionTest.kt @@ -203,32 +203,6 @@ class KotlinInjectionTest : AbstractInjectionTest() { """ ) - // TODO: Doesn't work. UnInjectionLanguageAction is not enabled because of absent LanguageInjectionSupport.INJECTOR_SUPPORT user data. -// fun testRemoveInjectionFromOneLineFunWithAnnotation() = doRemoveInjectionTest( -// """ -// import org.intellij.lang.annotations.Language -// -// @Language("HTML") fun template(): String = "" -// """, -// """ -// import org.intellij.lang.annotations.Language -// -// fun template(): String = "" -// """ -// ) - -// fun testRemoveInjectionOnQualifiedNameWithAnnotation() = doRemoveInjectionTest( -// """ -// import org.intellij.lang.annotations.Language -// -// @Language("RegExp") -// val s = java.util.regex.Pattern.compile("Hi") -// """, -// """ -// val test1 = java.util.regex.Pattern.compile("Hi") -// """ -// ) - fun testRemoveInjectionWithComment() = doRemoveInjectionTest( """ //language=file-reference @@ -321,45 +295,6 @@ class KotlinInjectionTest : AbstractInjectionTest() { """, languageId = HTMLLanguage.INSTANCE.id, unInjectShouldBePresent = false) -// fun testInjectionOfCustomParameterJavaWithAnnotation() = dotInjectionPresentTest( -// """ -// import some.Test -// -// fun bar() { Test.foo("some") } -// """, -// javaCode = -// """ -// package some; -// -// import org.intellij.lang.annotations.Language; -// -// public class Test { -// public static void foo(@Language("HTML") String str) {} -// } -// """, -// languageId = HTMLLanguage.INSTANCE.id, unInjectShouldBePresent = false -// ) -// -// fun testInjectionOfCustomParameterInJavaConstructorWithAnnotation() = dotInjectionPresentTest( -// """ -// import some.Test -// -// fun bar() { Test("some") } -// """, -// javaCode = -// """ -// package some; -// -// import org.intellij.lang.annotations.Language; -// -// public class Test { -// public Test(@Language("HTML") String str) {} -// } -// """, -// languageId = HTMLLanguage.INSTANCE.id, unInjectShouldBePresent = false -// ) - - fun testInjectionOfCustomParameterInJavaConstructorWithAnnotationWithAnnotation() = doInjectionPresentTest( """ fun bar() { Test("some") }