FileDocCategorySizeDatePackage
BaselineAlignmentZeroWidthAndWeightTest.javaAPI DocAndroid 5.1 API2252Thu Mar 12 22:22:12 GMT 2015android.widget.layout.linear

BaselineAlignmentZeroWidthAndWeightTest

public class BaselineAlignmentZeroWidthAndWeightTest extends android.test.ActivityInstrumentationTestCase

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

        super("com.android.frameworks.coretests", 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);