use of org.eclipse.scout.rt.client.ui.form.fields.FormFieldEnabledTest.P_GroupBox.P_TabBox.Tab2.P_ListBox in project scout.rt by eclipse.
the class FormFieldEnabledTest method testListBoxFilterBoxEnabled.
/**
* Tests that the listbox-filterbox stays enabled even if the parent listbox gets disabled (filter should always be
* usable).
*/
@Test
public void testListBoxFilterBoxEnabled() {
ICompositeField field = createFixture();
P_ListBox listBox = field.getFieldByClass(P_ListBox.class);
listBox.setEnabled(false);
Assert.assertFalse(listBox.isEnabled());
Assert.assertTrue(listBox.getListBoxFilterBox().isEnabled());
Assert.assertTrue(listBox.getListBoxFilterBox().getActiveStateRadioButtonGroup().getFieldByClass(ActiveButton.class).isEnabled());
}