From 193f5e9720a16ee732bc74ce9634d198d04dc444 Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Mon, 28 Mar 2016 19:14:29 +0300 Subject: [PATCH] Find problem test in injection --- .../jetbrains/kotlin/psi/KotlinInjectionTest.kt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/idea/tests/org/jetbrains/kotlin/psi/KotlinInjectionTest.kt b/idea/tests/org/jetbrains/kotlin/psi/KotlinInjectionTest.kt index d0813397d77..9180a337263 100644 --- a/idea/tests/org/jetbrains/kotlin/psi/KotlinInjectionTest.kt +++ b/idea/tests/org/jetbrains/kotlin/psi/KotlinInjectionTest.kt @@ -177,6 +177,20 @@ class KotlinInjectionTest : KotlinLightCodeInsightFixtureTestCase() { """ ) + // 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 testRemoveInjectionWithComment() = doRemoveInjectionTest( """ |//language=file-reference