mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
apply statistics from previous completion when starting new completion
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
class JComponent {}
|
||||
class JComboBox {}
|
||||
|
||||
class FooBar {
|
||||
void foo() {
|
||||
JCom<caret>
|
||||
}
|
||||
}
|
||||
+11
@@ -394,4 +394,15 @@ public class NormalCompletionOrderingTest extends CompletionSortingTestCase {
|
||||
checkPreferredItems(0, '_fooBar', 'FooBar')
|
||||
}
|
||||
|
||||
public void testStatisticsMattersOnNextCompletion() {
|
||||
configureByFile(getTestName(false) + ".java")
|
||||
myFixture.completeBasic();
|
||||
assert lookup
|
||||
assert lookup.currentItem.lookupString != 'JComponent'
|
||||
myFixture.type('ponent c;\nJCom')
|
||||
myFixture.completeBasic();
|
||||
assert lookup
|
||||
assert lookup.currentItem.lookupString == 'JComponent'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user