don't get in the way when typing a label name in java/groovy

This commit is contained in:
peter
2012-01-24 18:05:28 +01:00
parent 9b74a1f658
commit 45fb225d89
4 changed files with 47 additions and 3 deletions
@@ -532,7 +532,7 @@ public interface Test {
}
edt { myFixture.type '\t' }
myFixture.checkResult 'public interface Test { RuntimeException<caret>x }'
}
}
private def registerContributor(final Class contributor, LoadingOrder order = LoadingOrder.LAST) {
def ep = Extensions.rootArea.getExtensionPoint("com.intellij.completion.contributor")
@@ -1194,5 +1194,13 @@ class Foo {{
assert 'io' in myFixture.lookupElementStrings
}
public void testEnteringLabel() {
myFixture.configureByText 'a.java', '''class Foo {{
<caret>
}}
'''
type 'FIS:'
assert myFixture.file.text.contains('FIS:')
}
}