Methods Summary |
---|
protected void | setUp()
super.setUp();
mActivity = getActivity();
mListView = getActivity().getListView();
|
public void | testGoingDownSkipsOverUnselectable()
sendKeys(KeyEvent.KEYCODE_DPAD_DOWN);
assertEquals("should have skipped to next selectable ",
3,
mListView.getSelectedItemPosition());
|
public void | testGoingUpDoesnNotHitUnselectableItem()
sendKeys(KeyEvent.KEYCODE_DPAD_UP);
assertEquals("selected position should remain the same",
1, mListView.getSelectedItemPosition());
assertEquals("seperator should be scrolled flush with top",
mListView.getListPaddingTop(), mListView.getChildAt(0).getTop());
|
public void | testGoingUpSkippingOverUnselectable()
sendKeys(KeyEvent.KEYCODE_DPAD_DOWN);
sendKeys(KeyEvent.KEYCODE_DPAD_UP);
assertEquals(1, mListView.getSelectedItemPosition());
|
public void | testPreconditions()
assertNotNull(mActivity);
assertNotNull(mListView);
assertFalse(mListView.getAdapter().areAllItemsEnabled());
assertFalse(mListView.getAdapter().isEnabled(0));
assertFalse(mListView.getAdapter().isEnabled(2));
assertEquals(1, mListView.getSelectedItemPosition());
|