History log of /frameworks/ex/chips/tests/src/com/android/ex/chips/ChipsTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
391de8f776bcd194a4c155987960c5150a0059fc 02-May-2012 Mindy Pereira <mindyp@google.com> Fix null ptr in test cases by supplying a test adapter.

Change-Id: If979703d1140f8ad74b2896825a6b490af746442
/frameworks/ex/chips/tests/src/com/android/ex/chips/ChipsTest.java
8faa56ff909edb20154219f8d2ba6feecf1b5238 02-Nov-2011 Mindy Pereira <mindyp@google.com> If message starts with > 50 chips, dont chipify anything.

Also added test cases for new plain text version when there are too many
recips.
fixes b/5556474 Gmail ANR when replyi-all to a msg with many recipients

Change-Id: I69ba560bf8d8112b81a582aee17a07bf3da1aa65
/frameworks/ex/chips/tests/src/com/android/ex/chips/ChipsTest.java
00be4ce28569ae7d1871a2f95453b0e6a6a47852 14-Oct-2011 Mindy Pereira <mindyp@google.com> General cleanup of the chips view.

1) remove extra code
2) make sure we use convenience methods where possible
3) always make sure that we use sorted recipient chips when looking
for the position of a chip
4) test the convenience methods
5) rempove unused code
6) make methods package private that don't have to be public
Change-Id: I586eac795a548456ec29bd384abd2e7611a24a03
/frameworks/ex/chips/tests/src/com/android/ex/chips/ChipsTest.java
49ce9866ae314b3513e17008f107ceded23f9cf0 12-Oct-2011 Mindy Pereira <mindyp@google.com> Update pasting to handle more cases.

Fixes bug:5026774 pasting in email addresses changes

Change-Id: Id16e7470eb10a998fdb5efde06cb4449bb9d49e7
/frameworks/ex/chips/tests/src/com/android/ex/chips/ChipsTest.java
b3e42aaf97e476719cede047394718fd001fd79b 03-Oct-2011 Mindy Pereira <mindyp@google.com> Revert "Make the space part of the replacement image span."

This reverts commit a1d52e9203ea3cdfc0d1c69a8a4f99445fdd5ca1
Also reverts later change:
https://android-git.corp.google.com/g/#/c/138160/3
That was made to remove code that took into account having a space not
covered by the span character.
Fixes tests cases to respect the space character again.
Change-Id: I96d52a5df4d01e757f72949cbcf3b1f582679a46
/frameworks/ex/chips/tests/src/com/android/ex/chips/ChipsTest.java
878b7cea14b1f8583611a7df58a4406b3eca34b6 27-Sep-2011 Mindy Pereira <mindyp@google.com> Add comments to chips. Test replace first, middle, last chips.

Change-Id: Ib4c7b32879bc6a2f81ebd970645ae956ef177e10
/frameworks/ex/chips/tests/src/com/android/ex/chips/ChipsTest.java
ae7e41106f289f2668c54fff6c457c6fc91ab4a9 27-Sep-2011 Mindy Pereira <mindyp@google.com> Add more tests.

Tests verifying where a chip is position, removing a chip,
and creating a chip.

Change-Id: I2e9c6719a6efc365ab73c4d3c32bb29209b73e48
/frameworks/ex/chips/tests/src/com/android/ex/chips/ChipsTest.java
a1d52e9203ea3cdfc0d1c69a8a4f99445fdd5ca1 23-Sep-2011 Mindy Pereira <mindyp@google.com> Make the space part of the replacement image span.

This eliminates the need for manually adding extra spaces at the end.
This also fixes bug:5323325 Chips sometimes have no spacing between them on deleting
since now the space is ALWAYS deleted when the chip is deleted.

Change-Id: I8923940a070bcc1ce6894af3efa1449e98aa4830
/frameworks/ex/chips/tests/src/com/android/ex/chips/ChipsTest.java
a3806ce9e97ef635dc6d4495f9664b690de74960 22-Sep-2011 Mindy Pereira <mindyp@google.com> Protect against focus lost before drawing/uesrs already tokenized.

Fixes bug:5339625 odd behavior on orientation change in the "to field"

Also, added more test cases around adding/ removing more chip.
Change-Id: I1b24526b5be82835b5ec7c0345b7d73a31169a8f
/frameworks/ex/chips/tests/src/com/android/ex/chips/ChipsTest.java
a63e3fa13ddf1370125b7b005775c538ec22b83a 21-Sep-2011 Mindy Pereira <mindyp@google.com> More tests for sanitizing text between chips.

This specifically tests sanitizing content that is before
a chip when there is only 1 chip around.
Also, makes sure we don't look for a chip that isn't
attached (startLooking or end < 0)
Change-Id: I2591f29490a53c23527bbee487f1446b18c3f161
/frameworks/ex/chips/tests/src/com/android/ex/chips/ChipsTest.java
4031c89f46edea42c64e183e46d49484f1f203c0 20-Sep-2011 Mindy Pereira <mindyp@google.com> Add test cases for creating display tex and sanitzing spans.

Also, fixed a case we didn't catch where if the span start
was -1, we would crash.
Change-Id: Ia7d70dee117632ef2064c1f592fdc09694014846
/frameworks/ex/chips/tests/src/com/android/ex/chips/ChipsTest.java
c7afc9841ee6dd3bc5e19ee7269fecd466a8c6e9 20-Sep-2011 Mindy Pereira <mindyp@google.com> Fix crash in calendar.

Protect against walking off the end.
Fixes bug:5347150 Calendar crash on selecting guest suggestion after changing device orientation (java.lang.IndexOutOfBoundsException: charAt: 52 >= length 52) in IRK82

Change-Id: I6216a770175adac34416dfabda202ac9846c95ac
/frameworks/ex/chips/tests/src/com/android/ex/chips/ChipsTest.java
a590df861d7a42cd2889ee96d0b9e51b47d28755 20-Sep-2011 Mindy Pereira <mindyp@google.com> Catch a couple of interesting/ odd cases for creating display text.

1) User Name <User Name <username@username.com>>
2) User Name,Jr <user@username.com>

Change-Id: Ic148def8d3dd630af3fc5765958d59a682e1accd
/frameworks/ex/chips/tests/src/com/android/ex/chips/ChipsTest.java
59827bad5b89a47bcb7074448b37547efca5abcb 19-Sep-2011 Mindy Pereira <mindyp@google.com> Add test infrastructure for chips.

This adds test infrastructure, manifest, and make files plus
an initial test file that doesn't do anything.

Change-Id: Icbca2584f315a2b001f580cb2648352e48eb284d
/frameworks/ex/chips/tests/src/com/android/ex/chips/ChipsTest.java