FileDocCategorySizeDatePackage
GridPaddingTest.javaAPI DocAndroid 1.5 API1571Wed May 06 22:42:02 BST 2009com.android.frameworktest.gridview

GridPaddingTest

public class GridPaddingTest extends android.test.ActivityInstrumentationTestCase2

Fields Summary
private android.widget.GridView
mGridView
Constructors Summary
public GridPaddingTest()

        super("com.android.frameworktest", GridPadding.class);
    
Methods Summary
protected voidsetUp()

        super.setUp();

        setActivityInitialTouchMode(true);
        mGridView = getActivity().getGridView();
    
public voidtestPreconditions()

        assertNotNull(mGridView);
        assertTrue("Not in touch mode", mGridView.isInTouchMode());
    
public voidtestResurrectSelection()

        sendKeys("DPAD_DOWN");
        assertEquals("The first item should be selected", mGridView.getSelectedItemPosition(), 0);