FileDocCategorySizeDatePackage
BaselineAlignmentZeroWidthAndWeightTest.javaAPI DocAndroid 1.5 API2271Wed May 06 22:42:02 BST 2009com.android.frameworktest.layout.linear

BaselineAlignmentZeroWidthAndWeightTest

public class BaselineAlignmentZeroWidthAndWeightTest extends android.test.ActivityInstrumentationTestCase

Fields Summary
private android.widget.Button
mShowButton
Constructors Summary
public BaselineAlignmentZeroWidthAndWeightTest()

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

        super.setUp();

        final Activity activity = getActivity();
        mShowButton = (Button) activity.findViewById(R.id.show);
    
public voidtestComputeTexViewWithoutIllegalArgumentException()

        assertTrue(mShowButton.hasFocus());

        // Pressing the button will show an ExceptionTextView that might set a failed bit if
        // the test fails.
        sendKeys(KeyEvent.KEYCODE_DPAD_CENTER);
        getInstrumentation().waitForIdleSync();

        final ExceptionTextView etv = (ExceptionTextView) getActivity()
                .findViewById(R.id.routeToField);
        assertFalse("exception test view should not fail", etv.isFailed());
    
public voidtestSetUpConditions()

        assertNotNull(mShowButton);