FileDocCategorySizeDatePackage
FixedWidthTest.javaAPI DocAndroid 5.1 API2293Thu Mar 12 22:22:12 GMT 2015android.widget.layout.table

FixedWidthTest

public class FixedWidthTest extends android.test.ActivityInstrumentationTestCase
{@link android.widget.layout.table.FixedWidth} is setup to exercise tables in which cells use fixed width and height.

Fields Summary
private android.view.View
mFixedWidth
private android.view.View
mFixedHeight
private android.view.View
mNonFixedWidth
Constructors Summary
public FixedWidthTest()

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

        super.setUp();

        final FixedWidth activity = getActivity();
        mFixedWidth = activity.findViewById(R.id.fixed_width);
        mNonFixedWidth = activity.findViewById(R.id.non_fixed_width);
        mFixedHeight = activity.findViewById(R.id.fixed_height);
    
public voidtestFixedHeight()

        assertEquals(48, mFixedHeight.getHeight());
    
public voidtestFixedWidth()

        assertEquals(150, mFixedWidth.getWidth());
        assertEquals(mFixedWidth.getWidth(), mNonFixedWidth.getWidth());
    
public voidtestSetUpConditions()

        assertNotNull(mFixedWidth);
        assertNotNull(mFixedHeight);
        assertNotNull(mNonFixedWidth);