Skip to main content
summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKnut Radloff2001-11-16 20:02:02 +0000
committerKnut Radloff2001-11-16 20:02:02 +0000
commit4a41229267d8ec39ffddb937135f7f228c3d90ec (patch)
tree16d5d730a36ffcfd04383a53e9ac2145fab50967 /tests
parent742bdc148c8b97ba37216ba1a863a85917e46efc (diff)
downloadeclipse.platform.swt-4a41229267d8ec39ffddb937135f7f228c3d90ec.tar.gz
eclipse.platform.swt-4a41229267d8ec39ffddb937135f7f228c3d90ec.tar.xz
eclipse.platform.swt-4a41229267d8ec39ffddb937135f7f228c3d90ec.zip
*** empty log message ***
Diffstat (limited to 'tests')
-rw-r--r--tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_StyledText.java26
1 files changed, 20 insertions, 6 deletions
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_StyledText.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_StyledText.java
index 71c008632c..a801d4b843 100644
--- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_StyledText.java
+++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_StyledText.java
@@ -1671,7 +1671,9 @@ public void test_redrawRangeIIZ() {
text.redrawRange(0, 1, true);
}
catch (IllegalArgumentException e) {
- exceptionThrown = true;
+ if (e.getMessage().equals("Index out of bounds")) {
+ exceptionThrown = true;
+ }
}
assertTrue(exceptionThrown);
@@ -1680,7 +1682,9 @@ public void test_redrawRangeIIZ() {
text.redrawRange(0, 1, false);
}
catch (IllegalArgumentException e) {
- exceptionThrown = true;
+ if (e.getMessage().equals("Index out of bounds")) {
+ exceptionThrown = true;
+ }
}
assertTrue(exceptionThrown);
@@ -1689,7 +1693,9 @@ public void test_redrawRangeIIZ() {
text.redrawRange(-1, 2, true);
}
catch (IllegalArgumentException e) {
- exceptionThrown = true;
+ if (e.getMessage().equals("Index out of bounds")) {
+ exceptionThrown = true;
+ }
}
assertTrue(exceptionThrown);
@@ -1698,7 +1704,9 @@ public void test_redrawRangeIIZ() {
text.redrawRange(-1, 2, false);
}
catch (IllegalArgumentException e) {
- exceptionThrown = true;
+ if (e.getMessage().equals("Index out of bounds")) {
+ exceptionThrown = true;
+ }
}
assertTrue(exceptionThrown);
@@ -1709,13 +1717,17 @@ public void test_redrawRangeIIZ() {
text.redrawRange(0, 1, false);
text.redrawRange(8, 2, true);
text.redrawRange(8, 2, false);
+ text.redrawRange(10, 0, true);
+ text.redrawRange(10, 0, false);
exceptionThrown = false;
try {
text.redrawRange(10, 1, true);
}
catch (IllegalArgumentException e) {
- exceptionThrown = true;
+ if (e.getMessage().equals("Index out of bounds")) {
+ exceptionThrown = true;
+ }
}
assertTrue(exceptionThrown);
@@ -1724,7 +1736,9 @@ public void test_redrawRangeIIZ() {
text.redrawRange(10, 1, false);
}
catch (IllegalArgumentException e) {
- exceptionThrown = true;
+ if (e.getMessage().equals("Index out of bounds")) {
+ exceptionThrown = true;
+ }
}
assertTrue(exceptionThrown);
}

Back to the top