mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Added test for "Decrease Indent with 1 char on the last line"
See #1271
This commit is contained in:
@ -40,4 +40,15 @@ public class JEditTextAreaComponentDriver extends JComponentDriver {
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
public JEditTextArea selectAll(final JEditTextArea target) {
|
||||
return GuiActionRunner.execute(new GuiQuery<JEditTextArea>() {
|
||||
|
||||
protected JEditTextArea executeInEDT() {
|
||||
target.selectAll();
|
||||
return target;
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -2,9 +2,8 @@ package processing.app.helpers;
|
||||
|
||||
import org.fest.swing.core.Robot;
|
||||
import org.fest.swing.fixture.ComponentFixture;
|
||||
import processing.app.syntax.JEditTextArea;
|
||||
|
||||
import java.awt.*;
|
||||
import processing.app.syntax.JEditTextArea;
|
||||
|
||||
public class JEditTextAreaFixture extends ComponentFixture {
|
||||
|
||||
@ -38,4 +37,9 @@ public class JEditTextAreaFixture extends ComponentFixture {
|
||||
public String getText() {
|
||||
return driver.getText((JEditTextArea) target);
|
||||
}
|
||||
|
||||
public JEditTextAreaFixture selectAll() {
|
||||
driver.selectAll((JEditTextArea) target);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user