commit | 503427cf1b3d44c280fa907839442b4c8ceaee39 | [log] [tgz] |
---|---|---|
author | Raph Levien <raph@google.com> | Wed May 14 15:44:17 2014 -0700 |
committer | Raph Levien <raph@google.com> | Wed May 14 15:44:17 2014 -0700 |
tree | 7ab663a27ad2a01dffaa0dd71e91d9383a7f7e6a | |
parent | b4aff76e3732e4994fa8e1deb6f4d97540405d7b [diff] |
Fix android.text.cts.SpannableStringBuilderTest#testReplace2 The test was failing because recent versions now throw NPE rather than AIOOB. Given that the argument is null, I think NPE is appropriate, so I am fixing the test to accept it as well. Change-Id: I01caa93b0b737659b3b01a97decc729156994e88
diff --git a/tests/tests/text/src/android/text/cts/SpannableStringBuilderTest.java b/tests/tests/text/src/android/text/cts/SpannableStringBuilderTest.java index cfc000d..4895ca9 100644 --- a/tests/tests/text/src/android/text/cts/SpannableStringBuilderTest.java +++ b/tests/tests/text/src/android/text/cts/SpannableStringBuilderTest.java
@@ -259,6 +259,8 @@ fail("should throw IndexOutOfBoundsException here"); } catch (IndexOutOfBoundsException e) { // expected exception + } catch (NullPointerException e) { + // expected exception } }