Merge remote-tracking branch 'origin/master'

This commit is contained in:
Dmitry Jemerov
2012-09-06 00:26:13 +02:00
2 changed files with 20 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
# Only has artwork and tips stuff
skip: *
@@ -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());
}
}