FixedWidthTestpublic 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 void | setUp()
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 void | testFixedHeight()
assertEquals(48, mFixedHeight.getHeight());
| public void | testFixedWidth()
assertEquals(150, mFixedWidth.getWidth());
assertEquals(mFixedWidth.getWidth(), mNonFixedWidth.getWidth());
| public void | testSetUpConditions()
assertNotNull(mFixedWidth);
assertNotNull(mFixedHeight);
assertNotNull(mNonFixedWidth);
|
|