summaryrefslogtreecommitdiff
path: root/tests/src/com/android/email/activity/MessageViewTests.java
Commit message (Collapse)AuthorAgeFilesLines
* Disable MessageViewTestsMakoto Onuki2010-07-121-173/+140
| | | | | | | | | | - These tests will probably not make sense with the upcoming UI change. - Moved testAttachmentWritePermissions to UtilityUnitTests. It's a test for createUniqueFile, which is now owned by Utility. - Removed Long.MIN_VALUE hack from MessageView. New tests should have something better. Change-Id: I9a09e5e8080a165b010607d1fa3112bcaaab4f90
* Cleaning up MessageViewMakoto Onuki2010-07-021-13/+14
| | | | | | | | | | | | | | - Removed dead code/dead comment. - Moved static utility methods to Utility. - Renamed some methods. - Changed the timing to call super methods. Also: - Internationalized formatSize() - Added unit tests for createUniqueFile() and formatSize() - createUniqueFile now uses File.createNewFile() instead of exists(). Change-Id: Ibc30e15b029ed5088954bd6fc9032e25dddf176e
* Fix flaky testsMakoto Onuki2010-05-171-0/+1
| | | | | | | | | | | | Follow up to I3bf7d340. Make sure temp directory is set before running tests. Turned out Application.onCreate doesn't seem to be guaranteed to be run before unit tests. Without this, some tests may fail saying: "TempDirectory not set. Application hasn't started??", if onCreate runs too late. Change-Id: Ic5aee939a2c21f9579a643d0729dd0e9ba81022e
* Add static method to get temp dir in Email.Makoto Onuki2010-05-131-4/+0
| | | | | | | I need to be able to get the temp dir from anywhere without Context for the new IMAP parser. Change-Id: I3bf7d34059399a8253c0760ebc392804ea434412
* Preparing for renaming package.Makoto Onuki2010-02-161-1/+1
| | | | | | - Made tests use the new package-name-free constructor of ActivityInstrumentationTestCase2. Bug 2226160
* MessageView: fix rename next/prev in landscape.Mihai Preda2010-01-061-2/+2
| | | | Bug 2353633.
* MessageView: disable reply&forward for Trash messages.Mihai Preda2009-10-291-0/+22
| | | | Bug 2170118
* Fix broken MessageView testsAndrew Stadler2009-09-211-17/+5
| | | | I'm surprised these were working at all.
* Fix more broken large Email tests (#2087413)Marc Blank2009-09-061-8/+5
| | | | Change-Id: Iacff02d7bb025f6c4d6de9ca8dfa96c6cbb78d67
* Improvements to default account handlingAndrew Stadler2009-07-211-3/+4
| | | | | | | | | | | * Remove all references to Account.mIsDefault, which was not the right way to find the default account (it is lazy initialized) * Change Account.getDefaultAccount to getDefaultAccountId, which is more efficient and suitable in most uses. * Wrote unit tests for provider default account handling This should resolve bug 1983390 as well as a few other issues with default account management.
* am a4926736: Review Email tests annotations (small/medium/large) and change ↵Mihai Preda2009-06-181-2/+2
|\ | | | | | | | | | | | | | | | | some annotations based on time. Merge commit 'a492673609111fe8c41ae152d62547b267346502' * commit 'a492673609111fe8c41ae152d62547b267346502': Review Email tests annotations (small/medium/large) and change some annotations based on time.
| * Review Email tests annotations (small/medium/large) and change some ↵Mihai Preda2009-06-181-2/+2
| | | | | | | | | | | | | | | | annotations based on time. Fix an NPE appearing when running the test suite. BUG: 1566281, 1910409.
* | Refactored EmailStore, EmailContent, EmailProviderMarc Blank2009-06-151-3/+3
| | | | | | | | | | EmailStore goes away, replaced by EmailContent All database activity is moved to EmailProvider
* | Convert remainder of app to use provider-based accountsAndrew Stadler2009-06-081-13/+10
|/ | | | | | | | | | | | | | | | | What works: * Unit tests, except for com.android.email.activity.setup.* * Editing existing accounts * Create new accounts * Checking account settings against server * Mail sync using accounts * Viewing mailboxes What breaks (in approx order of planned fixes) * Unit tests in com.android.email.activity.setup.* * Viewing messages * Composing messages * Some details of account editing * Import of existing accounts
* resolved conflicts for merge of 7403a547384df0c3cb2cb7539d018a3b2029401d to ↵Mihai Preda2009-06-081-32/+1
|\ | | | | | | donut
| * AI 149664: Move escapeChar from MessageView to EmailHtmlUtil.Mihai Preda2009-06-081-44/+1
| | | | | | | | | | | | | | Integrate CL 148437 from DocomoEmail. BUG=1860250 Automated import of CL 149664
* | Add android.permission.WRITE_EXTERNAL_STORAGEAndrew Stadler2009-06-041-12/+29
|/ | | | | | Add unit test to verify writeable to sdcard. Fixed bug http://b/issue?id=1883487
* AI 149564: Escape special characters such as '<>&' in text/plain for display ↵Mihai Preda2009-06-041-0/+29
| | | | | | | | | | | in WebView. Integrate CL 144586,145919 from imode. Remove the Emoji escaping/workaround for WebView. Also integrate MimeHeader.java from CL 143064 from imode. BUG=1785319,1860250 Automated import of CL 149564
* AI 149523: Correctly display inline images in Reply and Forward messages.Mihai Preda2009-06-031-108/+13
| | | | | | | Integrates CL 148436, 148515, 148833 from imode email. BUG=1814789,1860250 Automated import of CL 149523
* AI 149442: Integrate CL#140625 (Fix attachment uri and content uri ↵Mihai Preda2009-06-011-2/+16
| | | | | | | | confusion) from imode to donut. BUG=1598754,1860250 Automated import of CL 149442
* AI 148300: Reduce memory waste in getTextFromPart(), and improve error handling.Andy Stadler2009-05-051-1/+5
| | | | | | | Fix NPE's in loadMessageForViewBodyAvailable(). BUG=1831272 Automated import of CL 148300
* AI 146134: Add persistence API for remote stores & folders to use whileAndy Stadler2009-04-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | syncing. This provides a key-value store, per folder, that can be used by network Stores to record persistent data such as sync status, server keys, etc. Note that, by definition, this only applies to remote folders (e.g. IMAP, POP3). You'll see everywhere that LocalFolder is passed null, and this is correct - LocalFolder *is* persistent storage and does not need external help. Note to reviewers: The core changes are Folder.java, LocalStore.java, and LocalStoreUnitTests.java, so please give them the bulk of your reviewer attention. The other files are just following along with minor API changes. Of those, the one worth close examination is MessagingController.java, which is the only place in the system where remote Folders are bonded with Local Folders and thus where this new API comes into play. Note to jham: Can you please take a look at LocalStore.LocalFolder.setPersistentString() and recommend better SQL foo than my primitive test-then-update-or-insert logic, which is not transactional or threadsafe. BUG=1786939 Automated import of CL 146134
* Automated import from //branches/donutburger/...@143018,143018Andy Stadler2009-03-261-1/+2
|
* auto import from //branches/cupcake_rel/...@140373The Android Open Source Project2009-03-181-5/+102
|
* auto import from //branches/cupcake/...@137197The Android Open Source Project2009-03-091-0/+2
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+148
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-148/+0
|
* auto import from //branches/cupcake/...@131421The Android Open Source Project2009-02-131-0/+148