diff options
author | Carolyn MacLeod | 2004-02-25 16:29:52 +0000 |
---|---|---|
committer | Carolyn MacLeod | 2004-02-25 16:29:52 +0000 |
commit | ec53311f307f99c877798a6ffb0b440c8eb99c2f (patch) | |
tree | c744c7ed54597edbbefe8241254f1c72285e4ad4 /tests | |
parent | 9d2c16bd9c75f6afe7e2680874cb668caa4eeaca (diff) | |
download | eclipse.platform.swt-ec53311f307f99c877798a6ffb0b440c8eb99c2f.tar.gz eclipse.platform.swt-ec53311f307f99c877798a6ffb0b440c8eb99c2f.tar.xz eclipse.platform.swt-ec53311f307f99c877798a6ffb0b440c8eb99c2f.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_widgets_List.java | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_List.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_List.java index a7bd32fc61..91c559e84c 100644 --- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_List.java +++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_List.java @@ -1459,11 +1459,8 @@ public void test_selectII() { selectII_helper(items, 2, 4, new int[] { 2, 3, 4 }); selectII_helper(items, 0, 3, new int[] { 0, 1, 2, 3 }); selectII_helper(items, 1, 1, new int[] { 1 }); - - if (fCheckSWTPolicy == true) { - selectII_helper(items, -1, 30, new int[] { 0, 1, 2, 3, 4 }); - selectII_helper(items, -1, 3, new int[] { 0, 1, 2, 3 }); - } + selectII_helper(items, -1, 30, new int[] { 0, 1, 2, 3, 4 }); + selectII_helper(items, -1, 3, new int[] { 0, 1, 2, 3 }); list.select(0); assertEquals(list.getSelectionIndices(), new int[] { 0 }); @@ -1490,6 +1487,15 @@ public void test_selectII() { setSingleList(); + list.select(0, 0); + assertEquals("empty list", list.getSelectionIndices(), new int[] {}); + + list.select(0, 1); + assertEquals("empty list", list.getSelectionIndices(), new int[] {}); + + list.select(-1, 0); + assertEquals("empty list", list.getSelectionIndices(), new int[] {}); + list.setItems(items); list.select(0); assertEquals(list.getSelectionIndices(), new int[] { 0 }); |