Methods Summary |
---|
public void | doDiffBgMinimumSizeTest(android.view.View view)
// Change to the bigger backgrounds
TouchUtils.tapView(this, mChangeBackgroundsButton);
assertTrue(view.getClass().getSimpleName()
+ " should respect the different bigger background Drawable's minimum width", view
.getWidth() >= mBigBackgroundDrawable.getMinimumWidth());
assertTrue(view.getClass().getSimpleName()
+ " should respect the different bigger background Drawable's minimum height", view
.getHeight() >= mBigBackgroundDrawable.getMinimumHeight());
|
public void | doMinimumSizeTest(android.view.View view)
assertTrue(view.getClass().getSimpleName() + " should respect the background Drawable's minimum width",
view.getWidth() >= mBackgroundDrawable.getMinimumWidth());
assertTrue(view.getClass().getSimpleName() + " should respect the background Drawable's minimum height",
view.getHeight() >= mBackgroundDrawable.getMinimumHeight());
|
protected void | setUp()
super.setUp();
final DrawableBgMinSize a = getActivity();
mChangeBackgroundsButton = (Button) a.findViewById(R.id.change_backgrounds);
mBackgroundDrawable = a.getResources().getDrawable(R.drawable.drawable_background);
mBigBackgroundDrawable = a.getResources().getDrawable(R.drawable.big_drawable_background);
mTextView = (TextView) a.findViewById(R.id.text_view);
mLinearLayout = (LinearLayout) a.findViewById(R.id.linear_layout);
mRelativeLayout = (RelativeLayout) a.findViewById(R.id.relative_layout);
mFrameLayout = (FrameLayout) a.findViewById(R.id.frame_layout);
mAbsoluteLayout = (AbsoluteLayout) a.findViewById(R.id.absolute_layout);
|
public void | testAbsoluteLayoutDiffBgMinimumSize()
doDiffBgMinimumSizeTest(mAbsoluteLayout);
|
public void | testAbsoluteLayoutMinimumSize()
doMinimumSizeTest(mAbsoluteLayout);
|
public void | testFrameLayoutDiffBgMinimumSize()
doDiffBgMinimumSizeTest(mFrameLayout);
|
public void | testFrameLayoutMinimumSize()
doMinimumSizeTest(mFrameLayout);
|
public void | testLinearLayoutDiffBgMinimumSize()
doDiffBgMinimumSizeTest(mLinearLayout);
|
public void | testLinearLayoutMinimumSize()
doMinimumSizeTest(mLinearLayout);
|
public void | testRelativeLayoutDiffBgMinimumSize()
doDiffBgMinimumSizeTest(mRelativeLayout);
|
public void | testRelativeLayoutMinimumSize()
doMinimumSizeTest(mRelativeLayout);
|
public void | testSetUpConditions()
assertNotNull(mChangeBackgroundsButton);
assertNotNull(mBackgroundDrawable);
assertNotNull(mBigBackgroundDrawable);
assertNotNull(mTextView);
assertNotNull(mLinearLayout);
assertNotNull(mRelativeLayout);
assertNotNull(mFrameLayout);
assertNotNull(mAbsoluteLayout);
|
public void | testTextViewDiffBgMinimumSize()
doDiffBgMinimumSizeTest(mTextView);
|
public void | testTextViewMinimumSize()
doMinimumSizeTest(mTextView);
|