mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-20 11:36:16 +07:00
34 lines
812 B
Java
34 lines
812 B
Java
|
|
package com.intellij.codeInsight.daemon.quickFix;
|
|
|
|
import com.intellij.openapi.application.ApplicationManager;
|
|
|
|
public class VariableAccessFromInnerClassTest extends LightQuickFixTestCase {
|
|
public void test() throws Exception {
|
|
doAllTests();
|
|
}
|
|
|
|
@Override
|
|
protected void beforeActionStarted(String testName, String contents) {
|
|
for (int i=0;i<10;i++) {
|
|
ApplicationManager.getApplication().runWriteAction(new Runnable() {
|
|
@Override
|
|
public void run() {
|
|
myEditor.getDocument().insertString(myEditor.getCaretModel().getOffset(), "//");
|
|
}
|
|
});
|
|
|
|
doHighlighting();
|
|
delete();
|
|
delete();
|
|
doHighlighting();
|
|
}
|
|
}
|
|
|
|
@Override
|
|
protected String getBasePath() {
|
|
return "/codeInsight/daemonCodeAnalyzer/quickFix/mustBeFinal";
|
|
}
|
|
}
|
|
|