summaryrefslogtreecommitdiffstats
path: root/chips/tests
Commit message (Collapse)AuthorAgeFilesLines
* Don't show the alternates dialog for GAL contactsScott Kennedy2013-11-141-5/+9
| | | | | | | | | | | There's a bug in the chips code that causes this to show either no alternates, or a different person, which is scaring people. The proper future fix is to store some more information about GAL contacts so we can do a proper lookup. Bug: 11535331 Change-Id: Id8b6fc834446afe33bd6ec4e99b3d2b75b985bde
* Add unit test for creating fake phone entriesScott Kennedy2013-03-221-1/+36
| | | | | | | | There was a problem with numbers formatted like: "(888) 555-1234". Bug: 8449554 Change-Id: Ic70998104bd5151aba2dca5202bc4f99ced362be
* Refactor some of thie chips codeScott Kennedy2013-03-081-26/+29
| | | | | | | | | VisibleRecipientChip and InvisibleRecipientChip had a lot of the same code, so I moved it all into a delegate class. This resulted in a bunch of "RecipientChip" classes, so I moved them all into their own sub-package. Change-Id: I01dfc931e006270dd37721c73e7bc3c0e7b67515
* Add a test case for b/8321211Scott Kennedy2013-03-061-0/+58
| | | | | | | | Emails like: "Ex Ample" <example@example.com> were displaying improperly. Change-Id: Idd43814352e0c4455733adc13b89eb6fc1aca1bb
* Merge "Initial clean up of the chips code" into jb-ub-mail-ur9Scott Kennedy2013-03-071-3/+3
|\
| * Initial clean up of the chips codeScott Kennedy2013-03-061-3/+3
| | | | | | | | Change-Id: I56a3dd5968a3ea435d6dcae9256021bac1f74ee6
* | Fix a failing testScott Kennedy2013-03-061-1/+0
|/ | | | Change-Id: Iaa45618d69ea12aa6714bcae36c8f12a253d5df2
* Unit test for getBetterRecipient()Scott Kennedy2013-03-061-0/+56
| | | | | | Follow-up to Ic53d290431fcabce9607685a6eca45063fea0c9a Change-Id: I28094ce9744838a1ab859470b22714d539ee8f4c
* Remove waitForDebugger()Scott Kennedy2013-03-061-1/+0
| | | | | | | This was accidentally commited in I8d2c978c0f346ffa3b8fa0f993efb6df6b0c224a Change-Id: I56481d0a6ea72ff9c61ee45fd98ad3f91c86460b
* Fix the chips tests so they buildScott Kennedy2013-03-062-10/+11
| | | | Change-Id: I8d2c978c0f346ffa3b8fa0f993efb6df6b0c224a
* Don't show duplicate destinations in alternate popupMakoto Onuki2012-05-031-0/+102
| | | | | | | | | There isn't much thing we can do from the contacts provider side, so let's just remove duplicates manually... Bug 6428328 Change-Id: I78e7fc7ed66d7cf977935611c8fb0318ffa7c83b
* Fix null ptr in test cases by supplying a test adapter.Mindy Pereira2012-05-021-0/+7
| | | | Change-Id: If979703d1140f8ad74b2896825a6b490af746442
* Test case fixes.Mindy Pereira2012-05-021-0/+2
| | | | | Fix build to properly get chips resources. Change-Id: Ibdeab82e64b323b753a842b1528205336a41b425
* If message starts with > 50 chips, dont chipify anything.Mindy Pereira2011-11-021-7/+88
| | | | | | | | 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
* General cleanup of the chips view.Mindy Pereira2011-10-141-37/+72
| | | | | | | | | | | 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
* Update pasting to handle more cases.Mindy Pereira2011-10-131-0/+185
| | | | | | Fixes bug:5026774 pasting in email addresses changes Change-Id: Id16e7470eb10a998fdb5efde06cb4449bb9d49e7
* Revert "Make the space part of the replacement image span."Mindy Pereira2011-10-031-40/+38
| | | | | | | | | | 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
* Add comments to chips. Test replace first, middle, last chips.Mindy Pereira2011-09-271-1/+84
| | | | Change-Id: Ib4c7b32879bc6a2f81ebd970645ae956ef177e10
* Add more tests.Mindy Pereira2011-09-271-0/+168
| | | | | | | Tests verifying where a chip is position, removing a chip, and creating a chip. Change-Id: I2e9c6719a6efc365ab73c4d3c32bb29209b73e48
* Make the space part of the replacement image span.Mindy Pereira2011-09-231-18/+63
| | | | | | | | 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
* Protect against focus lost before drawing/uesrs already tokenized.Mindy Pereira2011-09-221-2/+193
| | | | | | | 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
* More tests for sanitizing text between chips.Mindy Pereira2011-09-201-9/+19
| | | | | | | | 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
* Add test cases for creating display tex and sanitzing spans.Mindy Pereira2011-09-202-10/+113
| | | | | | Also, fixed a case we didn't catch where if the span start was -1, we would crash. Change-Id: Ia7d70dee117632ef2064c1f592fdc09694014846
* Fix crash in calendar.Mindy Pereira2011-09-201-2/+1
| | | | | | | 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
* Catch a couple of interesting/ odd cases for creating display text.Mindy Pereira2011-09-191-1/+1
| | | | | | | 1) User Name <User Name <username@username.com>> 2) User Name,Jr <user@username.com> Change-Id: Ic148def8d3dd630af3fc5765958d59a682e1accd
* Add test infrastructure for chips.Mindy Pereira2011-09-193-0/+85
This adds test infrastructure, manifest, and make files plus an initial test file that doesn't do anything. Change-Id: Icbca2584f315a2b001f580cb2648352e48eb284d