Fix for bug: 6949347. RelativeLayoutTest#testGenerateLayoutParams1 failure.
As of this release the default value of WRAP_CONTENT is supplied as a
default value for all undepscified width/height layout paramters.
The test for failure when widfth/height are not specified is no longer appropriate
and is removed from the CTS tests in this CL.
Change-Id: Ide167763592da927e4e04082f06f377b579d7674
diff --git a/tests/tests/widget/src/android/widget/cts/RelativeLayoutTest.java b/tests/tests/widget/src/android/widget/cts/RelativeLayoutTest.java
index d8d521b..9d15160 100644
--- a/tests/tests/widget/src/android/widget/cts/RelativeLayoutTest.java
+++ b/tests/tests/widget/src/android/widget/cts/RelativeLayoutTest.java
@@ -267,13 +267,6 @@
LayoutParams layoutParams = relativeLayout.generateLayoutParams(parser);
assertEquals(LayoutParams.MATCH_PARENT, layoutParams.width);
assertEquals(LayoutParams.MATCH_PARENT, layoutParams.height);
-
- // exceptional value
- try {
- relativeLayout.generateLayoutParams((AttributeSet) null);
- fail("Should throw RuntimeException");
- } catch (RuntimeException e) {
- }
}
public void testGenerateLayoutParams2() {