Methods Summary |
---|
protected void | setUp()
super.setUp();
setActivityInitialTouchMode(true);
mListView = getActivity().getListView();
|
public void | testPreconditions()
assertTrue(mListView.isInTouchMode());
assertEquals(1, mListView.getChildCount());
assertFalse(mListView.getAdapter().isEnabled(0));
assertEquals(AdapterView.INVALID_POSITION, mListView.getSelectedItemPosition());
|
public void | testRessurectSelection()
sendKeys(KeyEvent.KEYCODE_SPACE);
assertEquals(AdapterView.INVALID_POSITION, mListView.getSelectedItemPosition());
|
public void | testScrollDownPansNextItemOn()
sendKeys(KeyEvent.KEYCODE_DPAD_DOWN);
assertEquals(2, mListView.getChildCount());
|
public void | testScrollUpDoesNothing()
sendKeys(KeyEvent.KEYCODE_DPAD_UP);
assertEquals(AdapterView.INVALID_POSITION, mListView.getSelectedItemPosition());
assertEquals(1, mListView.getChildCount());
assertEquals(0, mListView.getFirstVisiblePosition());
|