super("com.android.frameworks.coretests", WeightSum.class);
super.setUp(); final Activity activity = getActivity(); mChild = activity.findViewById(R.id.child); mContainer = activity.findViewById(R.id.container);
final int childWidth = mChild.getWidth(); final int containerWidth = mContainer.getWidth(); assertEquals(containerWidth / 2, childWidth);
assertNotNull(mChild); assertNotNull(mContainer);