Methods Summary |
---|
protected void | setUp()
super.setUp();
mExpandableListView = getActivity().getExpandableListView();
mListUtil = new ListUtil(mExpandableListView, getInstrumentation());
|
public void | testExpandOnFirstGroup()
mListUtil.arrowScrollToSelectedPosition(getActivity().getNumOfHeadersAndFooters());
sendKeys(KeyEvent.KEYCODE_DPAD_CENTER);
getInstrumentation().waitForIdleSync();
assertTrue(mExpandableListView.isGroupExpanded(0));
|
public void | testExpandOnFirstPosition()
// Should be a header, and hence the first group should NOT have expanded
mListUtil.arrowScrollToSelectedPosition(0);
sendKeys(KeyEvent.KEYCODE_DPAD_CENTER);
getInstrumentation().waitForIdleSync();
assertFalse(mExpandableListView.isGroupExpanded(0));
|
public void | testPreconditions()
assertNotNull(mExpandableListView);
|