mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-90765 When a completion popup is visible in Python code, typing . does not popup next completion
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.jetbrains.python;
|
||||
|
||||
import com.intellij.codeInsight.lookup.impl.LookupImpl;
|
||||
import com.intellij.testFramework.fixtures.CompletionAutoPopupTester;
|
||||
import com.jetbrains.python.fixtures.PyTestCase;
|
||||
|
||||
@@ -33,4 +34,21 @@ public class PythonAutoPopupTest extends PyTestCase {
|
||||
assertNotNull(myTester.getLookup());
|
||||
}
|
||||
|
||||
public void testAutoPopupAfterDotDuringAnotherAutoPopup() {
|
||||
myFixture.configureByText("a.py", FOO_CLASS +
|
||||
"foo = Foo()\n" +
|
||||
"foo2 = Foo()\n" +
|
||||
"<caret>");
|
||||
myTester.typeWithPauses("foo");
|
||||
LookupImpl lookup1 = myTester.getLookup();
|
||||
assertNotNull(lookup1);
|
||||
assertFalse(lookup1.isFocused());
|
||||
|
||||
myTester.typeWithPauses(".");
|
||||
LookupImpl lookup2 = myTester.getLookup();
|
||||
assertNotSame(lookup1, lookup2);
|
||||
assertNotNull(lookup2);
|
||||
assertFalse(lookup2.isFocused());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user