KT-3575, KT-2297 Inserting pair for "${": reverting to use KotlinTypeHandler

(with disabling JetPairMatcher for this case)
This commit is contained in:
Sergey Rostov
2013-05-21 16:26:40 +04:00
committed by Nikolay Krasko
parent aeb72922ce
commit c70a49fab3
3 changed files with 32 additions and 2 deletions
@@ -26,6 +26,18 @@ public class TypedHandlerTest extends LightCodeInsightTestCase {
checkResultByText("val x = \"${}\"");
}
public void testTypeStringTemplateStartWithCloseBraceAfter() throws Exception {
configureFromFileText("a.kt", "fun foo() { \"$<caret>\" }");
EditorTestUtil.performTypingAction(getEditor(), '{');
checkResultByText("fun foo() { \"${}\" }");
}
public void testTypeStringTemplateStartBeforeString() throws Exception {
configureFromFileText("a.kt", "fun foo() { \"$<caret>something\" }");
EditorTestUtil.performTypingAction(getEditor(), '{');
checkResultByText("fun foo() { \"${}something\" }");
}
public void testKT3575() throws Exception {
configureFromFileText("a.kt", "val x = \"$<caret>]\"");
EditorTestUtil.performTypingAction(getEditor(), '{');