mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-15 12:29:26 +01:00
Added test for "Decrease Indent with 1 char on the last line"
See #1271
This commit is contained in:
parent
5e17ae84a2
commit
d246ca06ab
@ -1234,6 +1234,7 @@ public class Editor extends JFrame implements RunnerListener {
|
||||
menu.add(item);
|
||||
|
||||
item = newJMenuItem(_("Decrease Indent"), '[');
|
||||
item.setName("menuDecreaseIndent");
|
||||
item.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
handleIndentOutdent(false);
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -3,6 +3,7 @@ ARDUINO 1.5.3 BETA
|
||||
|
||||
[ide]
|
||||
* Removed useless baud rates from serial monitor
|
||||
* Fixed some minor IDE UI bugs (Shigeru Kanemoto)
|
||||
|
||||
[arduino core]
|
||||
* sam: Fixed delayMicrosecond() when interrupts are disabled
|
||||
|
Loading…
x
Reference in New Issue
Block a user