summaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/mail/compose/ComposeActivityTest.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix ComposeActivityTestRégis Décamps2014-10-091-31/+44
| | | | | | | | | | | | Fix `Can't create handler inside thread that has not called Looper.prepare()`. `new FromAddressSpinner(activity);` needs to be called on the UI thread. Bug: 9823857 Add unit test for merging accounts in from spinner Bug: 17388964 Fix the Gmail test suite Change-Id: Icbc9ae309a59cbe5f6ed6cd0681747b3e37e0157
* Fixed bug with % encodingJin Cao2014-03-271-0/+53
| | | | | | | | | | | | | | | | | | | | | The app crashes when %25 exists in the body of mailto (actually also crashes if it's in the subject). This is caused by attempting to decode % encoding twice through getQueryParameters and URLDecoder.decode. e.g. body=Bye%25Bye, after getQueryParameters. the string turns into Bye%Bye, then passing that into URLDecoder.decode will throw error because %Bye is not a valid % encoding. To fix, we manually re-encode %, then run it through URLDecoder to get the correct message. Added unit tests to test full functionality of initFromMailTo with various inputs to make sure that they are displayed correctly. Tested original bug on phone, and % sign is rendered correctly with no crashes. b/12441256 Change-Id: I06b2a4378f11de58d59b4978db1af751928570c7
* RTL: properly align from addresses.Andrew Sapperstein2014-03-041-8/+6
| | | | | | | b/13082177 b/12687526 Change-Id: I88789a9b986fe0889de2b23c7e8acad5d4f0b0cf
* Get rid of Account#nameTony Mantler2014-03-031-7/+11
| | | | | | b/13249115 Change-Id: I5478b139cba9e3e37924c3af1c7a4f818a803fa3
* comment out broken unit tests in UnifiedEmailAnthony Lee2014-02-071-3/+3
| | | | Change-Id: I41d1ea0e9df509b8cbd0fdbba026888b6bef8101
* RTL - properly align from address in compose.Andrew Sapperstein2014-01-231-6/+7
| | | | | | b/12687526. Change-Id: I5f09303674da08b7870a84ef6477d7bfac4015cd
* fix internal fancy mailtosAndy Huang2013-12-201-5/+42
| | | | | | | | | | Mailto: links that included anything other than a "to" address weren't handled correctly when a user clicked on one from within a message body. Pass the entire 'mailto' URL to ComposeActivity to ensure our normal mailto parsing code kicks in. Bug: 12137171 Change-Id: I0352ecc80b7c9cfadeb605f8e0b2a694387c9b03
* Divert mailto Uris directly to compose activityTony Mantler2013-10-241-8/+43
| | | | | | b/11329313 Change-Id: I9c255b2018b25669557b208e749e56e7fe1597b4
* Add some tests for replying to a messagePaul Westbrook2013-07-181-143/+322
| | | | | | | | | | | | | | | | | | | | | The new tests excercise: 1) Replying to a message and ensuring the the "fromAccount" is the same as is specified in the original message 2) Handling a "mailto:" url and ensuring that if the account is specified in the intent, the "fromAccount" is set to that account Change the MockProvider so all accounts are correctly populated Change test methods to use runTestOnUiThread instead of Activity#runOnUiThread, as asserts stop the test suite The new test methods setup the activity in a way that the user does. The original test cases should be updated accordingly Bug: 9823857 Change-Id: I8598fd1b27c57cf8bcd371be8960267a5ac1a770
* Fixed NPE in ComposeActivityTestPaul Westbrook2013-07-171-6/+8
| | | | Change-Id: I5cbde624b31a408016c90135ba4415d6ff708818
* Fix replying from "combined account"Paul Westbrook2013-07-121-12/+12
| | | | | | | | A bug to tracking the addition of the unit test has been filed in bug 9823857 Bug: 9595801 Change-Id: Ie5eb8b5ea4cfddf9c111144c7b5b8ad2844e31b3
* CleanupScott Kennedy2013-04-051-39/+20
| | | | Change-Id: Iee8abf75639450d469632e43fe0e102b687558db
* Clean up a bunch of warningsScott Kennedy2013-03-211-3/+3
| | | | Change-Id: I5c75564eeb2df9ec76d682dbe5f4465ff2a1a5d4
* Set MIME type correctly on drafts when content provider does not provide it.Mark Wei2013-02-211-4/+25
| | | | | Bug: 8235172 Change-Id: I7bbccbecb7d038f3add4503be0dcf460a4864b2e
* Cache column name/indexes so we can use getColumnIndex()Scott Kennedy2013-02-061-2/+3
| | | | | | MatrixCursor doesn't do this, so we need to add our own cache. Change-Id: Ia5ffd31f54a2a335f495df5e0d1a0886ee08c14b
* Fixup compose test cases.mindyp2012-11-211-48/+117
| | | | | | | Add case where the user is replying to themselves or to their custom from Add correct cases for reply to Change-Id: I688cd5b7b49fe153c84fde20e73456ac574b7685
* Tests around replying to a thread your account startedmindyp2012-11-191-4/+85
| | | | | | | Covers cases in: b/7549198 Reply behavior Change-Id: Iad47c388a051cb1669391552fdecaffd82a88ce4
* Maintain to/cc/bcc state on rotationScott Kennedy2012-11-071-47/+47
| | | | | | | | | | | The tokenized string was never updated after being initially set, even if the backing values changed. Additionally, the to/cc/bcc values were never updated once the Message was initially created. Bug: 7490394 Change-Id: Iae1c8ae88f9ab5b8e2e7fe10835587b61decf0c8
* Add missed cases to custom from address logic.mindyp2012-11-061-5/+94
| | | | | | Fixes b/7477806 Reply-all on a conversation where you are included as a custom-from should not include you Change-Id: I8d4b5906b1f19706edad9989993e68e404a30437
* Fix build.Mindy Pereira2012-08-141-2/+3
| | | | Change-Id: I00a2fffa05c76eed04406abdbb0289dc700ec610
* Custom from updatesMindy Pereira2012-07-311-0/+42
| | | | | | Fixes b/6882713 Reply-all on a conversation where you are included as a custom-from should not include you Change-Id: I6f26a18db05a7624c78ef67bda251f0d5eece87c
* More test cases for switching modes; now with attachments.Mindy Pereira2012-06-201-16/+56
| | | | | | This stuff is tricky, so adding lots of tests. Change-Id: I423cb91134bd084cf033c33a1e3595018f74f8fe
* More test cases for switching modes.Mindy Pereira2012-06-201-0/+119
| | | | | | This stuff is tricky, so adding lots of tests. Change-Id: Ib761b364d4f39c053f590ab8dbc4fa82296e3055
* Add custom from checks.Mindy Pereira2012-06-201-0/+64
| | | | | | | Make it possible to determine if any address is a custom from for the currently active account. Now with test cases! Change-Id: Ib1a436d518cd3e4c28ac8990c95f2d337d06d53f
* Fix buildPaul Westbrook2012-03-201-1/+1
| | | | Change-Id: I56ee3cdcb48ae83a6bf97a1e7a00162fdbe456dd
* Store URI's in Uri instead of String.Mindy Pereira2012-02-281-2/+2
| | | | Change-Id: I5492a61b80442afc7cebc5b3d560688aebae8820
* Use a constructor to create a provider object.Mindy Pereira2012-02-241-2/+2
| | | | | | Some were using from(Cursor), and it was confusing. Change-Id: I49655b4ed013fb4dd47cdefea0bfd850a3fa4517
* Create parcelable message.Mindy Pereira2012-01-171-25/+22
| | | | | | | | | Also, gets rid of and renames fields that required them per: name change to appendRefMessageContent remove custom_from field remove quoted text pos Change-Id: I33a2f83b906d2504a8a6ae58f79f1618bb8a20cd
* Even more compose tests.Mindy Pereira2012-01-121-0/+12
| | | | | | Tests are great! <3 Change-Id: I44cfafed78a5583323839743f0301919e5d3fcfd
* More recipient tests for reply/reply all/ fwd.Mindy Pereira2012-01-121-9/+115
| | | | | | Also added _column to the end of the html_body and text_body fields for message columns. Change-Id: I565a89d9eb811d122ca7aafd62b15a97c3cfe484
* Add compose tests.Mindy Pereira2012-01-111-0/+159
First tests are for correct recipients in reply, reply all, fwd. Change-Id: I845bd3b29cee6736c7aee5a589bc548d26eb9acd