From c28ebf20804ee339ba1a8d6b704913d13766b70c Mon Sep 17 00:00:00 2001 From: Dmitry Avdeev Date: Mon, 2 Sep 2013 13:14:07 +0400 Subject: [PATCH] IDEA-112914 Insert closing tag after typing "); return Result.STOP; } diff --git a/xml/tests/src/com/intellij/codeInsight/completion/XmlTypedHandlersTest.java b/xml/tests/src/com/intellij/codeInsight/completion/XmlTypedHandlersTest.java index 6a5edda198d8..bcc1afbe797d 100644 --- a/xml/tests/src/com/intellij/codeInsight/completion/XmlTypedHandlersTest.java +++ b/xml/tests/src/com/intellij/codeInsight/completion/XmlTypedHandlersTest.java @@ -29,4 +29,10 @@ public class XmlTypedHandlersTest extends LightPlatformCodeInsightFixtureTestCas myFixture.type('/'); myFixture.checkResult(""); } + + public void testGreedyClosing() { + myFixture.configureByText(XmlFileType.INSTANCE, "<foo>"); + myFixture.type('/'); + myFixture.checkResult(""); + } }