use of android.test.suitebuilder.annotation.MediumTest in project android_frameworks_base by ParanoidAndroid.
the class ViewGroupChildrenTest method testRemoveChild.
@UiThreadTest
@MediumTest
public void testRemoveChild() throws Exception {
View view = createView("1");
mGroup.addView(view);
ViewAsserts.assertGroupIntegrity(mGroup);
mGroup.removeView(view);
ViewAsserts.assertGroupIntegrity(mGroup);
ViewAsserts.assertGroupNotContains(mGroup, view);
assertEquals(0, mGroup.getChildCount());
assertNull(view.getParent());
}
use of android.test.suitebuilder.annotation.MediumTest in project android_frameworks_base by ParanoidAndroid.
the class ViewStubTest method testInflated.
@UiThreadTest
@MediumTest
public void testInflated() throws Exception {
final StubbedView activity = getActivity();
final ViewStub stub = (ViewStub) activity.findViewById(R.id.viewStub);
final View swapped = stub.inflate();
assertNotNull("The inflated view is null", swapped);
}
use of android.test.suitebuilder.annotation.MediumTest in project android_frameworks_base by ParanoidAndroid.
the class ViewStubTest method testInflatedId.
@UiThreadTest
@MediumTest
public void testInflatedId() throws Exception {
final StubbedView activity = getActivity();
final ViewStub stub = (ViewStub) activity.findViewById(R.id.viewStubWithId);
final View swapped = stub.inflate();
assertNotNull("The inflated view is null", swapped);
assertTrue("The inflated view has no id", swapped.getId() != View.NO_ID);
assertTrue("The inflated view has the wrong id", swapped.getId() == R.id.stub_inflated);
}
use of android.test.suitebuilder.annotation.MediumTest in project android_frameworks_base by ParanoidAndroid.
the class ViewStubTest method testStubbed.
@MediumTest
public void testStubbed() throws Exception {
final StubbedView activity = getActivity();
final View stub = activity.findViewById(R.id.viewStub);
assertNotNull("The ViewStub does not exist", stub);
}
use of android.test.suitebuilder.annotation.MediumTest in project android_frameworks_base by ParanoidAndroid.
the class IncludeTest method testIncludedWithVisibility.
@MediumTest
public void testIncludedWithVisibility() throws Exception {
final Include activity = getActivity();
final View button1 = activity.findViewById(R.id.included_button_visibility);
assertEquals("Included button should be invisible", View.INVISIBLE, button1.getVisibility());
}
Aggregations