// test keyboard support
{
t.setSelectedItem(t0);
// disable keyboard support
NativeEvent keyEvent0 = Document.get().createKeyPressEvent(false, false,
false, false, KeyCodes.KEY_DOWN, 0);
assertEquals(t0, t.getSelectedItem());
t.setKeyboardSupportEnabled(false);
t.getElement().dispatchEvent(keyEvent0);
assertEquals(t0, t.getSelectedItem());
// enable keyboard support
NativeEvent keyEvent1 = Document.get().createKeyPressEvent(false, false,
false, false, KeyCodes.KEY_DOWN, 0);
assertEquals(t0, t.getSelectedItem());
t.setKeyboardSupportEnabled(true);
t.getElement().dispatchEvent(keyEvent1);
assertEquals(t1, t.getSelectedItem());