Minor: Remove commented tests

This commit is contained in:
Nikolay Krasko
2017-05-15 19:48:51 +03:00
parent 0cd3e4f3a4
commit e211980df4
@@ -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 = "<caret><html></html>"
// """,
// """
// import org.intellij.lang.annotations.Language
//
// fun template(): String = "<caret><html></html>"
// """
// )
// 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("<caret>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("<caret>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("<caret>some") }