aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/InputLogicTests.java (follow)
Commit message (Expand)AuthorAgeFilesLines
* Separate caps mode related utils to CapsModeUtils•••Change-Id: I32700c434b296bb3fd39e040c2dda1fe90667daf Tadashi G. Takaoka2013-02-121-8/+8
* Add unit tests tags•••Bug: 8131968 Change-Id: Ibca5a0d63a492134b8af401a62ca3a5748e003cf Tadashi G. Takaoka2013-02-041-0/+3
* Fix a race condition with backspaces•••And add a test to make sure it stays not-broken. Bug: 7946604 Change-Id: I996da3d5507d591ec25a13fb57434f39843f1df5 Jean Chalard2013-01-091-0/+21
* Move code point constants from Keyboard to Constants class•••Change-Id: Iee01d4d2b916d0b584531104ac865ae6e6370a3d Tadashi G. Takaoka2012-10-291-14/+12
* Fix failing tests.•••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 Jean Chalard2012-10-101-6/+12
* Don't forward phantom space state on stripper input•••Bug: 6890540 Change-Id: I923b24e3bc17e7b923be4940ad739b58dca24a1f Jean Chalard2012-07-311-0/+13
* Cleanup (A57)•••We stopped cancelling manual picks a few weeks ago. This code is dead. Change-Id: I4032fcc3c95e9379f1839fe860a1b8a9bd7d0bc7 Jean Chalard2012-07-061-0/+20
* Fix some of the input logic tests•••This behavior has been changed for bug#6105732 Bug: 6516976 Change-Id: Ief8225b26d831cd92a051ce25cc005270b6b1776 Jean Chalard2012-05-221-4/+4
* add logPoint for manual correction (inc touch pos)•••Bug: 6188932 Change-Id: Ibcc4901bcfab6632ee4c59cb58d35452218a288d Kurt Partridge2012-04-161-10/+10
* Separate input logic tests in several categories.•••The intent is to make things easier to read. Change-Id: Ida95ac8bd4119a2497d3e2a4d92485a96316962d Jean Chalard2012-03-231-246/+0
* Split input logic tests to make creating new tests easier•••This will allow easier reuse of the complicated set up code and the various helper methods. Change-Id: I864eb0da476cbf0fe087ddb1713af80d3c3eb850 Jean Chalard2012-03-231-217/+1
* Don't rely on spell checker proximity in tests•••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 Jean Chalard2012-03-221-0/+11
* Fix a bug where quotes and dashes are considered letters•••Bug: 6174065 Change-Id: I702760d44ead0eeb60d06360aa3bb03c2ec73325 Jean Chalard2012-03-151-0/+16
* Give InputLogicTests the ability to change language•••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 Jean Chalard2012-03-081-14/+61
* Fix a bug with successive manual picks•••Bug: 6121571 Change-Id: Ib16fbef1087da3b7da5539901ec57156f242f089 Jean Chalard2012-03-071-1/+26
* Merge "Integrate the logic to calculate the proximities"satok2012-03-051-27/+3
|\
| * Integrate the logic to calculate the proximities•••Bug: 4343280 Change-Id: I0f6a7e6912ed4abea07c10d266da4c7ccb0dae76 satok2012-03-061-27/+3
* | Fix a test•••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 Jean Chalard2012-03-061-0/+4
|/
* Add basic tests for auto-correct indicator.•••Bug: 5975557 Change-Id: I39e782f89813b9d585e369e590d6288e696168a2 Jean Chalard2012-03-021-0/+119
* Add a method to run the handler's messages from the tests•••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 Jean Chalard2012-02-291-0/+47
* Add some unit tests.•••- 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 Jean Chalard2012-02-221-0/+51
* Fix the auto-composer to support supplementary chars•••Change-Id: I61ff218ae2ca4eb443a370e581b677755258670a Jean Chalard2012-02-081-2/+19
* Add some unit tests for punctuation and special keys•••Bug: 5962053 Change-Id: I7dd68767be6e724675428910fa2c00290f76e869 Jean Chalard2012-02-071-0/+65
* Fix a race condition that makes tests unstable•••Change-Id: Ic19d380eb64855884bc6ded8547c200dd772ffe9 Jean Chalard2012-02-071-0/+14
* Stop inserting a space after a manually picked word.•••Bug: 4994861 Change-Id: I6ae256a94dbaddea4304304779d17025620c5025 Jean Chalard2012-02-031-3/+3
* Fix a bug when deleting the last char•••And unit test Change-Id: Ic4fc3626f8b86e10156d770d41cd6deab5d31f39 Jean Chalard2012-02-031-0/+9
* Fix string iterations in a couple places.•••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 Jean Chalard2012-02-031-1/+1
* Add unit tests in prevision of magic space removal•••Bug: 4994861 Change-Id: I114a1117cf19aa6e514ac7342f733175dc5d5df1 Jean Chalard2012-02-021-0/+73
* Add a missing brace•••Change-Id: Ia51da6506d78a295b8b70a241208fb81602cf0ea Jean Chalard2012-01-261-0/+1
* Add a test for moving cursor then backspace•••This is a test for the case in Bug: 5851148 Change-Id: I58ee459d85f463b445a28137bdc6c40bc3067ff5 Jean Chalard2012-01-261-0/+13
* Add a test case for backspace at start of line•••Tests the behavior from Bug: 5784542 Change-Id: I78ec9d77c5dd1e3ea8eff530f9d7d284a1c094d4 Jean Chalard2012-01-261-0/+12
* Add tests for double space behavior•••Bug: 5875776 Change-Id: Icc28b6c5c0132a3afc8d603841c9e321f720b7c9 Jean Chalard2012-01-261-0/+15
* Add a test for auto-correction.•••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 Jean Chalard2012-01-251-1/+39
* Test that delete actually removes any selected text.•••Bug: 5699301 Change-Id: I09a967eb03690251e8bd69503285c982d6958a7d Jean Chalard2012-01-241-7/+27
* Enable DEBUG mode for logic tests.•••This enables a wealth of useful checks. We want to run unit tests with debug mode on. Change-Id: Ic45caaf43a889287f5aec203e7d1ba63136fc58e Jean Chalard2012-01-201-0/+16
* Add the first tests for the input login in LatinIME class•••Change-Id: Ifcf9ab55ee01bf7c6c6829e699246e5654975456 Jean Chalard2012-01-201-0/+106