From c05bf9a1a9ab2b9725b101aa01be68f1cfeeeeff Mon Sep 17 00:00:00 2001 From: Alexander Zolotov Date: Tue, 8 Sep 2015 14:51:44 +0300 Subject: [PATCH] Try to invoke nextTemplateVariable action on typing \n in tests --- .../fixtures/impl/CodeInsightTestFixtureImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/testFramework/src/com/intellij/testFramework/fixtures/impl/CodeInsightTestFixtureImpl.java b/platform/testFramework/src/com/intellij/testFramework/fixtures/impl/CodeInsightTestFixtureImpl.java index 96b335e1aa65..6c2f074c322f 100644 --- a/platform/testFramework/src/com/intellij/testFramework/fixtures/impl/CodeInsightTestFixtureImpl.java +++ b/platform/testFramework/src/com/intellij/testFramework/fixtures/impl/CodeInsightTestFixtureImpl.java @@ -939,6 +939,9 @@ public class CodeInsightTestFixtureImpl extends BaseFixture implements CodeInsig if (_performEditorAction(IdeActions.ACTION_CHOOSE_LOOKUP_ITEM)) { return; } + if (_performEditorAction(IdeActions.ACTION_EDITOR_NEXT_TEMPLATE_VARIABLE)) { + return; + } performEditorAction(IdeActions.ACTION_EDITOR_ENTER); return;