FileDocCategorySizeDatePackage
LinearLayoutEditTextsTest.javaAPI DocAndroid 5.1 API1815Thu Mar 12 22:22:12 GMT 2015android.widget.layout.linear

LinearLayoutEditTextsTest

public class LinearLayoutEditTextsTest extends android.test.ActivityInstrumentationTestCase

Fields Summary
private android.view.View
mChild
private android.view.View
mContainer
Constructors Summary
public LinearLayoutEditTextsTest()

        super("com.android.frameworks.coretests", LinearLayoutEditTexts.class);
    
Methods Summary
protected voidsetUp()

        super.setUp();

        final Activity activity = getActivity();
        mChild = activity.findViewById(R.id.editText1);
        mContainer = activity.findViewById(R.id.layout);
    
public voidtestLayout()

        final int childHeight = mChild.getHeight();
        final int containerHeight = mContainer.getHeight();

        assertEquals(containerHeight, childHeight);
    
public voidtestPreconditions()

        assertNotNull(mChild);
        assertNotNull(mContainer);