bbe51f8290af05b4071c7ed44fcbaa98e2f85e13 |
|
28-Apr-2017 |
Andrei Stingaceanu <stg@google.com> |
Move text coretests to JUnit (2) * moves android.text.util, android.text.format and android.text.method packages core tests to AndroidJUnit * replaced manual mocks with mockito usage * cleaned up dead code Bug: 31223263 Test: adb shell am instrument -w -e package android.text\ com.android.frameworks.coretests/android.support.test.runner\ .AndroidJUnitRunner Change-Id: I7b13c10521381e4f26ca8e6189392914238a21dd
/frameworks/base/core/tests/coretests/src/android/text/method/WordIteratorTest.java
|
1f7ab84b0ebd38c0054d7f840f9a649555e21591 |
|
16-Dec-2016 |
Roozbeh Pournader <roozbeh@google.com> |
Add unit tests for apostrophe for WordIterator These tests mid-word apostrophe, making sure that in English at least, the apostrophe does act like a quotation mark to break the word. Bug: 17641350 Bug: 17673522 Test: adb shell am instrument -w -e class android.text.method.WordIteratorTest com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner Change-Id: If81df706218bdcd5882ee80905ea2f43786d5412
/frameworks/base/core/tests/coretests/src/android/text/method/WordIteratorTest.java
|
b08a07165fdc9ee6df40bbce94676755461ff3e0 |
|
29-Jun-2016 |
Roozbeh Pournader <roozbeh@google.com> |
Refactor WordIterator to avoid copying to internal buffers Previously, since the assumption was that the string is passed down to ICU4C for the iteration to run, a window of text was copied and maintained. But now, we can just pass an iterator to the input CharSequence directly to ICU4J. Bug: 21832431 Change-Id: Ife5dfdb1d90b3eda2817d4d75747b7abc34a2299
/frameworks/base/core/tests/coretests/src/android/text/method/WordIteratorTest.java
|
9dad5811d7232c85c07761dddd9ebd035524f955 |
|
29-Jun-2016 |
Roozbeh Pournader <roozbeh@google.com> |
Get failing WordIterator unit tests to pass again WordIterator is now following the pattern in java.text.BreakIterator, throwing an IllegalArgumentException when receiving an invalid argument. Previously, it failed inconsistently. Also add @SmallTest annotations to the WordIterator tests. Bug: 29868991 Change-Id: I8158f2f419c8c4467205031655c0e62cc9ef5c1c
/frameworks/base/core/tests/coretests/src/android/text/method/WordIteratorTest.java
|
4968a219bf091df2e76ada29d39531bdde647c88 |
|
14-Sep-2015 |
Keisuke Kuroyanagi <ksk@google.com> |
Remove TextViewWordLimitsTest and add WordIteratorTest. TextViewWordLimitsTest tests TextView methods that no longer exists. This removes the obsolete test class and add tests for WordIterator instead. Bug: 24024480 Change-Id: Iffe16c2d7fa680089bc49d1384ce5e232330fb7c
/frameworks/base/core/tests/coretests/src/android/text/method/WordIteratorTest.java
|