summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Text.java158
1 files changed, 79 insertions, 79 deletions
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Text.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Text.java
index c3d8f032aa..396f02d2d2 100644
--- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Text.java
+++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Text.java
@@ -290,40 +290,40 @@ public void test_computeSizeIIZ() {
}
public void test_copy() {
-// text.copy();
-//
-// text.selectAll();
-// text.copy();
-// assertEquals("", text.getSelectionText());
-//
-// text.setText("00000");
-// text.selectAll();
-// text.copy();
-// text.setSelection(2);
-// assertEquals("", text.getSelectionText());
-//
-// text.setText("");
-// text.paste();
-// assertEquals("00000", text.getText());
-//
-// // tests a SINGLE line text editor
-// makeCleanEnvironment(true);
-//
-// text.copy();
-//
-// text.selectAll();
-// text.copy();
-// assertEquals("", text.getSelectionText());
-//
-// text.setText("00000");
-// text.selectAll();
-// text.copy();
-// text.setSelection(2);
-// assertEquals("", text.getSelectionText());
-//
-// text.setText("");
-// text.paste();
-// assertEquals("00000", text.getText());
+ text.copy();
+
+ text.selectAll();
+ text.copy();
+ assertEquals("", text.getSelectionText());
+
+ text.setText("00000");
+ text.selectAll();
+ text.copy();
+ text.setSelection(2);
+ assertEquals("", text.getSelectionText());
+
+ text.setText("");
+ text.paste();
+ assertEquals("00000", text.getText());
+
+ // tests a SINGLE line text editor
+ makeCleanEnvironment(true);
+
+ text.copy();
+
+ text.selectAll();
+ text.copy();
+ assertEquals("", text.getSelectionText());
+
+ text.setText("00000");
+ text.selectAll();
+ text.copy();
+ text.setSelection(2);
+ assertEquals("", text.getSelectionText());
+
+ text.setText("");
+ text.paste();
+ assertEquals("00000", text.getText());
}
public void test_cut() {
@@ -762,51 +762,51 @@ public void test_isVisible() {
}
public void test_paste() {
-// text.setText("01234567890");
-// text.setSelection(2, 4);
-// assertEquals("01234567890", text.getText());
-// text.copy();
-// text.setSelection(0);
-// text.paste();
-// assertEquals("2301234567890", text.getText());
-// text.copy();
-// text.setSelection(3);
-// text.paste();
-// assertEquals("230231234567890", text.getText());
-//
-// text.setText("0" + delimiterString + "1");
-// text.selectAll();
-// text.copy();
-// text.setSelection(0);
-// text.paste();
-// assertEquals("0" + delimiterString + "1" + "0" + delimiterString + "1", text.getText());
-//
-// // tests a SINGLE line text editor
-// makeCleanEnvironment(true);
-//
-// text.setText("01234567890");
-// text.setSelection(2, 4);
-// assertEquals("01234567890", text.getText());
-// text.copy();
-// text.setSelection(0);
-// text.paste();
-// assertEquals("2301234567890", text.getText());
-// text.copy();
-// text.setSelection(3);
-// text.paste();
-// assertEquals("230231234567890", text.getText());
-//
-// // tests a SINGLE line text editor
-// makeCleanEnvironment(true);
-//
-// text.setText("0" + delimiterString + "1");
-// text.selectAll();
-// text.copy();
-// text.setSelection(0);
-// text.paste();
-//
-// if (fCheckSWTPolicy)
-// assertEquals("0" + delimiterString + "1" + "0" + delimiterString + "1", text.getText());
+ text.setText("01234567890");
+ text.setSelection(2, 4);
+ assertEquals("01234567890", text.getText());
+ text.copy();
+ text.setSelection(0);
+ text.paste();
+ assertEquals("2301234567890", text.getText());
+ text.copy();
+ text.setSelection(3);
+ text.paste();
+ assertEquals("230231234567890", text.getText());
+
+ text.setText("0" + delimiterString + "1");
+ text.selectAll();
+ text.copy();
+ text.setSelection(0);
+ text.paste();
+ assertEquals("0" + delimiterString + "1" + "0" + delimiterString + "1", text.getText());
+
+ // tests a SINGLE line text editor
+ makeCleanEnvironment(true);
+
+ text.setText("01234567890");
+ text.setSelection(2, 4);
+ assertEquals("01234567890", text.getText());
+ text.copy();
+ text.setSelection(0);
+ text.paste();
+ assertEquals("2301234567890", text.getText());
+ text.copy();
+ text.setSelection(3);
+ text.paste();
+ assertEquals("230231234567890", text.getText());
+
+ // tests a SINGLE line text editor
+ makeCleanEnvironment(true);
+
+ text.setText("0" + delimiterString + "1");
+ text.selectAll();
+ text.copy();
+ text.setSelection(0);
+ text.paste();
+
+ if (fCheckSWTPolicy)
+ assertEquals("0" + delimiterString + "1" + "0" + delimiterString + "1", text.getText());
}
public void test_removeModifyListenerLorg_eclipse_swt_events_ModifyListener() {