diff options
author | Grant Gayed | 2003-11-14 22:09:09 +0000 |
---|---|---|
committer | Grant Gayed | 2003-11-14 22:09:09 +0000 |
commit | 8d2c4f1f6968a294326e69c35259bee18e6ad7c0 (patch) | |
tree | 04365bb85111fdec4cf65b5063b6065c13f65d72 | |
parent | b0b8de1fdd2055cd1dd1a9960de5b25be22b9089 (diff) | |
download | eclipse.platform.swt-8d2c4f1f6968a294326e69c35259bee18e6ad7c0.tar.gz eclipse.platform.swt-8d2c4f1f6968a294326e69c35259bee18e6ad7c0.tar.xz eclipse.platform.swt-8d2c4f1f6968a294326e69c35259bee18e6ad7c0.zip |
*** empty log message ***
-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, 10 insertions, 6 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 b3c8c16717..8cb9097943 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 @@ -1445,9 +1445,11 @@ public void test_setSelection$I() { for (int i = 0; i < number; i++) list.add("fred" + i); - list.setSelection(new int [0]); - assertEquals(list.getSelectionIndices(), new int[0]); - assertEquals(list.getFocusIndex(), 0); + if (fCheckSWTPolicy) { + list.setSelection(new int [0]); + assertEquals(list.getSelectionIndices(), new int[0]); + assertEquals(list.getFocusIndex(), -1); + } try { list.setSelection((int[]) null); @@ -1541,9 +1543,11 @@ public void test_setSelection$I() { for (int i = 0; i < number; i++) list.add("fred" + i); - list.setSelection(new int [0]); - assertEquals(list.getSelectionIndices(), new int[0]); - assertEquals(list.getFocusIndex(), 0); + if (fCheckSWTPolicy) { + list.setSelection(new int [0]); + assertEquals(list.getSelectionIndices(), new int[0]); + assertEquals(list.getFocusIndex(), -1); + } try { list.setSelection((int[]) null); |