f.dispose();
}
public void test2(TestHarness harness)
{
List list = new List();
list.setMultipleMode(true);
harness.check(list.isMultipleMode());
list.add("item1");
list.add("item2");
list.add("item3");
harness.check(list.getItemCount(), 3);
list.select(1);
list.select(0);
list.select(2);
harness.check(list.isSelected(0));
harness.check(list.isSelected(1));
harness.check(list.isSelected(2));
list.setMultipleMode(false);
harness.check(list.isMultipleMode(), false);
harness.check(list.getItemCount(), 3);
harness.check(list.getSelectedIndex(), -1);
harness.check(list.isSelected(0));
harness.check(list.isSelected(1), true);
harness.check(list.isSelected(2), true);
}