|
@@ -47,7 +47,6 @@ import org.fest.swing.fixture.JInternalFrameFixture;
|
47
|
47
|
import org.junit.After;
|
48
|
48
|
import org.junit.Before;
|
49
|
49
|
import org.junit.BeforeClass;
|
50
|
|
-import org.junit.Ignore;
|
51
|
50
|
import org.junit.Test;
|
52
|
51
|
|
53
|
52
|
public class InputTextFrameTest {
|
|
@@ -61,11 +60,14 @@ public class InputTextFrameTest {
|
61
|
60
|
@BeforeClass
|
62
|
61
|
public static void setUpClass() throws InvalidIdentityFileException {
|
63
|
62
|
IdentityManager.load();
|
|
63
|
+ IdentityManager.getAddonIdentity().setOption("test", "windowMenuItems", "1");
|
|
64
|
+ IdentityManager.getAddonIdentity().setOption("test", "windowMenuScrollInterval", "1");
|
64
|
65
|
IdentityManager.getAddonIdentity().setOption("test", "debugEDT", "false");
|
|
66
|
+ IdentityManager.getAddonIdentity().setOption("test", "textpanebackground", "");
|
65
|
67
|
controller = new SwingController();
|
66
|
68
|
controller.setDomain("test");
|
67
|
69
|
controller.onLoad();
|
68
|
|
- Main.setUI(controller);
|
|
70
|
+
|
69
|
71
|
Main.ensureExists(PluginManager.getPluginManager(), "tabcompletion");
|
70
|
72
|
}
|
71
|
73
|
|
|
@@ -99,7 +101,7 @@ public class InputTextFrameTest {
|
99
|
101
|
dlg.target.dispose();
|
100
|
102
|
}
|
101
|
103
|
|
102
|
|
- @Test @Ignore
|
|
104
|
+ @Test
|
103
|
105
|
public void testPasteDialogWithTextBefore() throws InterruptedException {
|
104
|
106
|
window.textBox().enterText("testing:");
|
105
|
107
|
((InputTextFrame) window.target).doPaste("line1\nline2");
|
|
@@ -113,7 +115,7 @@ public class InputTextFrameTest {
|
113
|
115
|
dlg.target.dispose();
|
114
|
116
|
}
|
115
|
117
|
|
116
|
|
- @Test @Ignore
|
|
118
|
+ @Test
|
117
|
119
|
public void testPasteDialogWithTextAfter() throws InterruptedException {
|
118
|
120
|
window.textBox().enterText("<- testing").pressAndReleaseKey(
|
119
|
121
|
KeyPressInfo.keyCode(KeyEvent.VK_HOME));
|
|
@@ -128,7 +130,7 @@ public class InputTextFrameTest {
|
128
|
130
|
dlg.target.dispose();
|
129
|
131
|
}
|
130
|
132
|
|
131
|
|
- @Test @Ignore
|
|
133
|
+ @Test
|
132
|
134
|
public void testPasteDialogWithTextAround() throws InterruptedException {
|
133
|
135
|
window.textBox().enterText("testing:<- testing").selectText(8, 8);
|
134
|
136
|
((InputTextFrame) window.target).doPaste("line1\nline2");
|