aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/InputLogicTests.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Separate caps mode related utils to CapsModeUtilsTadashi G. Takaoka2013-02-121-8/+8
| | | | Change-Id: I32700c434b296bb3fd39e040c2dda1fe90667daf
* Add unit tests tagsTadashi G. Takaoka2013-02-041-0/+3
| | | | | Bug: 8131968 Change-Id: Ibca5a0d63a492134b8af401a62ca3a5748e003cf
* Fix a race condition with backspacesJean Chalard2013-01-091-0/+21
| | | | | | | And add a test to make sure it stays not-broken. Bug: 7946604 Change-Id: I996da3d5507d591ec25a13fb57434f39843f1df5
* Move code point constants from Keyboard to Constants classTadashi G. Takaoka2012-10-291-14/+12
| | | | Change-Id: Iee01d4d2b916d0b584531104ac865ae6e6370a3d
* Fix failing tests.Jean Chalard2012-10-101-6/+12
| | | | | | | | | | | Most of the failures can be ascribed to the tests not passing the correct old position of the cursor on a second call to onUpdateSelection() to LatinIME. Bug: 7276565 Bug: 7276805 Bug: 7276195 Change-Id: I3f1b52cdcc783ea18838408bed50699b7254eaf4
* Don't forward phantom space state on stripper inputJean Chalard2012-07-311-0/+13
| | | | | Bug: 6890540 Change-Id: I923b24e3bc17e7b923be4940ad739b58dca24a1f
* Cleanup (A57)Jean Chalard2012-07-061-0/+20
| | | | | | | We stopped cancelling manual picks a few weeks ago. This code is dead. Change-Id: I4032fcc3c95e9379f1839fe860a1b8a9bd7d0bc7
* Fix some of the input logic testsJean Chalard2012-05-221-4/+4
| | | | | | | This behavior has been changed for bug#6105732 Bug: 6516976 Change-Id: Ief8225b26d831cd92a051ce25cc005270b6b1776
* add logPoint for manual correction (inc touch pos)Kurt Partridge2012-04-161-10/+10
| | | | | Bug: 6188932 Change-Id: Ibcc4901bcfab6632ee4c59cb58d35452218a288d
* Separate input logic tests in several categories.Jean Chalard2012-03-231-246/+0
| | | | | | The intent is to make things easier to read. Change-Id: Ida95ac8bd4119a2497d3e2a4d92485a96316962d
* Split input logic tests to make creating new tests easierJean Chalard2012-03-231-217/+1
| | | | | | | This will allow easier reuse of the complicated set up code and the various helper methods. Change-Id: I864eb0da476cbf0fe087ddb1713af80d3c3eb850
* Don't rely on spell checker proximity in testsJean Chalard2012-03-221-0/+11
| | | | | | | | | | This fixes the input logic tests that were broken and suppresses their dependency upon the spell checker proximity. Instead, it gets the Keyboard instance from Latin IME and uses the actual coordinates, which results in a test run closer to what actually happens during typing. Change-Id: I3a81d249ee7fb3ac6ae6940aa2e8b2421e829e5c
* Fix a bug where quotes and dashes are considered lettersJean Chalard2012-03-151-0/+16
| | | | | Bug: 6174065 Change-Id: I702760d44ead0eeb60d06360aa3bb03c2ec73325
* Give InputLogicTests the ability to change languageJean Chalard2012-03-081-14/+61
| | | | | | | | Also fix a typo, and increase the time allowed to load the main dictionary to 2 secs instead of 1. Bug: 6114326 Change-Id: I5f70b34fc4277c55977b18466253152aa98a2507
* Fix a bug with successive manual picksJean Chalard2012-03-071-1/+26
| | | | | Bug: 6121571 Change-Id: Ib16fbef1087da3b7da5539901ec57156f242f089
* Merge "Integrate the logic to calculate the proximities"satok2012-03-051-27/+3
|\
| * Integrate the logic to calculate the proximitiessatok2012-03-061-27/+3
| | | | | | | | | | | | Bug: 4343280 Change-Id: I0f6a7e6912ed4abea07c10d266da4c7ccb0dae76
* | Fix a testJean Chalard2012-03-061-0/+4
|/ | | | | | | | | | | | | | | To some extent, the test was wrong here. After space is typed in this case, we wait a small delay before updating the suggestion strip so that we can display bigram predictions without introducing delays. The suggestion strip is not displayed until then. The test was bypassing this by simulating a press on the suggestion strip, but for LatinIME it was not displayed yet, hence the bug. The new code waits for the delay, makes sure the suggestion strip is actually displaying punctuation marks, then press the mark and do the intended test on space. Change-Id: I18f82da1bc0a8e584e9b1bac59ff48823d78ec12
* Add basic tests for auto-correct indicator.Jean Chalard2012-03-021-0/+119
| | | | | Bug: 5975557 Change-Id: I39e782f89813b9d585e369e590d6288e696168a2
* Add a method to run the handler's messages from the testsJean Chalard2012-02-291-0/+47
| | | | | | | | | | | This is really brutal, but after trying many many things I didn't find a better way. It works with the current implementation of MessageQueue. Since this only introduces a utility method it doesn't really do anything, but the functionality it provides will be essential to Bug: 5975557 Change-Id: I81c4113a08f9a8d8a88294d7dd3b6c8c483c8b1d
* Add some unit tests.Jean Chalard2012-02-221-0/+51
| | | | | | | | | | | | | | | - Type "tgis", manually pick "thus", press backspace. Backspace should revert the manual pick. Check "tgis" is the result. - Type "tgis" followed by a period. Period should trigger auto-correct to "this". Check "this" is the result. - Type "tgis" followed by a period, then backspace. Period should trigger auto-correct to "this", and backspace should revert the auto-correction. Check "tgis." is the result. Change-Id: I7e23c8a26fbdbe23336149a05ff01bc51707422e
* Fix the auto-composer to support supplementary charsJean Chalard2012-02-081-2/+19
| | | | Change-Id: I61ff218ae2ca4eb443a370e581b677755258670a
* Add some unit tests for punctuation and special keysJean Chalard2012-02-071-0/+65
| | | | | Bug: 5962053 Change-Id: I7dd68767be6e724675428910fa2c00290f76e869
* Fix a race condition that makes tests unstableJean Chalard2012-02-071-0/+14
| | | | Change-Id: Ic19d380eb64855884bc6ded8547c200dd772ffe9
* Stop inserting a space after a manually picked word.Jean Chalard2012-02-031-3/+3
| | | | | Bug: 4994861 Change-Id: I6ae256a94dbaddea4304304779d17025620c5025
* Fix a bug when deleting the last charJean Chalard2012-02-031-0/+9
| | | | | | And unit test Change-Id: Ic4fc3626f8b86e10156d770d41cd6deab5d31f39
* Fix string iterations in a couple places.Jean Chalard2012-02-031-1/+1
| | | | | | | | Seems I didn't get how to iterate on a String correctly >.> Talk about a big bug. Anyway, I think it's working now. Bug: 5955228 Change-Id: I988c900cf2a16c44b9505cfd4f77c7cda7e592f0
* Add unit tests in prevision of magic space removalJean Chalard2012-02-021-0/+73
| | | | | Bug: 4994861 Change-Id: I114a1117cf19aa6e514ac7342f733175dc5d5df1
* Add a missing braceJean Chalard2012-01-261-0/+1
| | | | Change-Id: Ia51da6506d78a295b8b70a241208fb81602cf0ea
* Add a test for moving cursor then backspaceJean Chalard2012-01-261-0/+13
| | | | | | | This is a test for the case in Bug: 5851148 Change-Id: I58ee459d85f463b445a28137bdc6c40bc3067ff5
* Add a test case for backspace at start of lineJean Chalard2012-01-261-0/+12
| | | | | | | Tests the behavior from Bug: 5784542 Change-Id: I78ec9d77c5dd1e3ea8eff530f9d7d284a1c094d4
* Add tests for double space behaviorJean Chalard2012-01-261-0/+15
| | | | | Bug: 5875776 Change-Id: Icc28b6c5c0132a3afc8d603841c9e321f720b7c9
* Add a test for auto-correction.Jean Chalard2012-01-251-1/+39
| | | | | | | | | Fix two related subtle bugs: - Stop singling out fat-finger-only corrections for rejection when touch coordinates are not available. - Remove a racy check that would happen only in debug mode Change-Id: Ic904f9b27c091ca6b369052c4e65a630bff81257
* Test that delete actually removes any selected text.Jean Chalard2012-01-241-7/+27
| | | | | Bug: 5699301 Change-Id: I09a967eb03690251e8bd69503285c982d6958a7d
* Enable DEBUG mode for logic tests.Jean Chalard2012-01-201-0/+16
| | | | | | | This enables a wealth of useful checks. We want to run unit tests with debug mode on. Change-Id: Ic45caaf43a889287f5aec203e7d1ba63136fc58e
* Add the first tests for the input login in LatinIME classJean Chalard2012-01-201-0/+106
Change-Id: Ifcf9ab55ee01bf7c6c6829e699246e5654975456