add read action to JavaAutoPopupTest.testAmbiguousClassQualifier

This commit is contained in:
peter
2014-08-26 10:14:20 +02:00
parent 0bb759e4e4
commit 4f216c49dc
@@ -1300,7 +1300,7 @@ class Foo {{
type '.'
assert myFixture.lookupElementStrings == ['Util.bar', 'Util.CONSTANT', 'Util.foo']
def p = LookupElementPresentation.renderElement(myFixture.lookupElements[1])
def p = ApplicationManager.application.runReadAction ({ LookupElementPresentation.renderElement(myFixture.lookupElements[1]) } as Computable)
assert p.itemText == 'Util.CONSTANT'
assert p.tailText == ' (foo)'
assert p.typeText == 'int'