mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
minimize CompletionAutoPopupTestCase
This commit is contained in:
@@ -1331,4 +1331,20 @@ class Foo {
|
||||
myFixture.checkResult('class <caret>')
|
||||
}
|
||||
|
||||
void joinCompletion() {
|
||||
myTester.joinCompletion()
|
||||
}
|
||||
|
||||
protected def joinCommit(Closure c1={}) {
|
||||
myTester.joinCommit(c1)
|
||||
}
|
||||
|
||||
protected void joinAutopopup() {
|
||||
myTester.joinAutopopup()
|
||||
}
|
||||
|
||||
protected def joinAlarm() {
|
||||
myTester.joinAlarm()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+3
-37
@@ -23,57 +23,23 @@ import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase
|
||||
* @author peter
|
||||
*/
|
||||
abstract class CompletionAutoPopupTestCase extends LightCodeInsightFixtureTestCase {
|
||||
private CompletionAutoPopupTester myTester
|
||||
protected CompletionAutoPopupTester myTester
|
||||
|
||||
@Override protected void setUp() {
|
||||
edt { superSetUp() }
|
||||
myTester = new CompletionAutoPopupTester(myFixture)
|
||||
}
|
||||
void superSetUp() {
|
||||
super.setUp()
|
||||
}
|
||||
void superTearDown() {
|
||||
super.tearDown()
|
||||
}
|
||||
|
||||
@Override protected void tearDown() {
|
||||
edt { superTearDown() }
|
||||
}
|
||||
|
||||
protected void doHighlighting() {
|
||||
edt { myFixture.doHighlighting() }
|
||||
myTester = new CompletionAutoPopupTester(myFixture)
|
||||
}
|
||||
|
||||
void type(String s) {
|
||||
myTester.typeWithPauses(s)
|
||||
}
|
||||
|
||||
protected void joinCompletion() {
|
||||
myTester.joinCompletion()
|
||||
}
|
||||
|
||||
protected def joinCommit(Closure c1={}) {
|
||||
myTester.joinCommit(c1)
|
||||
}
|
||||
|
||||
protected void joinAutopopup() {
|
||||
myTester.joinAutopopup()
|
||||
}
|
||||
|
||||
protected def joinAlarm() {
|
||||
myTester.joinAlarm()
|
||||
}
|
||||
|
||||
@Override protected void runTest() {
|
||||
myTester.runWithAutoPopupEnabled { runTestBare() }
|
||||
}
|
||||
|
||||
@Override protected boolean runInDispatchThread() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override protected void invokeTestRunnable(Runnable runnable) {
|
||||
runnable.run()
|
||||
myTester.runWithAutoPopupEnabled(runnable)
|
||||
}
|
||||
|
||||
LookupImpl getLookup() {
|
||||
|
||||
Reference in New Issue
Block a user