From 4a41229267d8ec39ffddb937135f7f228c3d90ec Mon Sep 17 00:00:00 2001 From: Knut Radloff Date: Fri, 16 Nov 2001 20:02:02 +0000 Subject: *** empty log message *** --- .../Test_org_eclipse_swt_custom_StyledText.java | 26 +++++++++++++++++----- 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'tests') 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); } -- cgit v1.2.3