aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/InputLogicTests.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Make "Show correction suggestions" as a binary optionTadashi G. Takaoka2014-07-271-11/+9
| | | | | | | | | | | | Formerly "Show correction suggestions" had three options, "always show", "show in portrait mode", and "always hide". The reason behind "show in portrait mode" was that there may not be enough screen estate in landscape mode to show suggestions. Because recent phone devices have relatively large screen, we decide to remove "show in portrait mode" option. Bug: 15780939 Change-Id: I896d737452c3893d43ce20bd88127f10c1eb3d83
* Fix a unit testJean Chalard2014-07-011-4/+8
| | | | | | | When switching languages, we need to wait until the dictionary is loaded to compute suggestions. Change-Id: I7c32a900b297cd6302bfdc020842581315f3007f
* Fix testsJean Chalard2014-06-301-27/+21
| | | | Change-Id: I12ba56d021b50c03dc62e3f3c8db3ecada2f6a4b
* Make Beginning-of-Sentence prediction require two exposures.Keisuke Kuroyanagi2014-06-251-4/+10
| | | | | Bug: 15868192 Change-Id: I4b577ad11c992d872d6f902fd50527d9ca5cc1ba
* Fix: unit tests by clearing personalized dictsKeisuke Kuroyanagi2014-06-251-0/+2
| | | | | Bug: 14119293 Change-Id: I61cc05fb09342103f453ba83709c6be68d2f695e
* Fix: too many calls to getSuggestedWordsForTypingInputJean Chalard2014-05-291-0/+21
| | | | | | | | | | | This reverts commit d941ea18 and builds on it to fix the behavior of the broken cases. It also fixes a small, related bug that probably has existed for a very long time: predictions not displayed when cancelling double-space-to-period. Bug: 15148015 Change-Id: I1f9358f8b6f5804f831643611576be347e83999d
* Fix a bug where changing languages kills the composition.Jean Chalard2014-05-141-0/+12
| | | | | Bug: 14926896 Change-Id: Id2a06c68a51f833db4d8bbc858a232c2696afb6e
* Introduce clustering punctuationJean Chalard2014-05-011-0/+12
| | | | | Bug: 10081730 Change-Id: If198fa3df68ecb267da0a278da41fd509d6165f1
* Fix a bug with double-space-to-periodJean Chalard2014-04-031-0/+75
| | | | | Bug: 13778001 Change-Id: I3ebd57950cdfacbbcdc64ed214c0590519a0665c
* [CB14.5] Stop copying WordComposers.Jean Chalard2014-03-281-0/+39
| | | | | | | | | | | | | | This is an overdue refactoring that I have been wanted to do forever, and that we can at last do now that suggestions come only from instances of BinaryDictionary instances. With this, all unit tests and regression tests are passing again. Bug: 13667648 Bug: 13665487 Bug: 8636060 Change-Id: Ie23a19f9b7e692edf2ee0b107ddaff2d7db564b6
* [CB14] Implement backspace in the combiner chainJean Chalard2014-03-251-0/+20
| | | | | | Bug: 13622107 Bug: 13406701 Change-Id: I0023b398c4451253f9f717e2bd990b8a054004bc
* Change default decaying parameters.Keisuke Kuroyanagi2014-03-141-1/+1
| | | | | Bug: 13458617 Change-Id: I4942af4a48881fb6ca866c74140b262e6d323f4a
* Add an auto-correction by user history test.Keisuke Kuroyanagi2014-02-211-0/+32
| | | | | Bug: 11122480 Change-Id: I830bb3399f9839a80c6d86fbf582299bce424871
* Fix buildJean Chalard2014-02-181-1/+1
| | | | | | This is a forgotten rebase Change-Id: I7c7c381775488ed9239dc284bd9c31247a86a972
* Merge "Fix a bug where the cache would be out of sync"Jean Chalard2014-02-181-0/+37
|\
| * Fix a bug where the cache would be out of syncJean Chalard2014-02-181-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | During recorrection, the cursor position when calling commitText is not necessarily at the end of the composing text. Besides, RichInputConnection assumes the cursor is always after any composing text. This is not correct, but in the practice, it seems all code paths work. We should fix this in the future. Bug: 13060691 Change-Id: I15f71fff62d36e80cf6e4a022c5e78af634b199d
* | Cleanup.Jean Chalard2014-02-181-3/+3
|/ | | | | | | Less code, less chance of stuff escaping, and a bit of a clarification. Yay. Change-Id: I3193fd8ad7ac28195260cbc231c4e498a63a460c
* Fix a test.Jean Chalard2014-01-101-1/+1
| | | | | Bug: 12483313 Change-Id: Ia811d614b9260367871bc5717f587538adf46789
* Fix a unit test in InputLogicTests.Keisuke Kuroyanagi2014-01-091-1/+1
| | | | Change-Id: I63a20bb2e4b3c39495fade6cae3a14fdd11ca48c
* [IL52] Remove a useless method.Jean Chalard2013-12-271-2/+4
| | | | | | | | | | | | | | | This old method doesn't even re-read the old suggestions. It used to recompute them without the coordinates. Re-using the recorrection code, which is much more advanced, is the right thing to do here. Also, refining the test. It's no use trying to resume suggestion if we don't have a suggestion strip, since we aren't going to auto-correct anything anyway. Not the motivation for this change, but this also fixes Bug: 11620256 Change-Id: Id49efa32e293c49837c61fdc752c86bbac1d2c88
* Fix a bug where predictions would not pop upon manual pickJean Chalard2013-12-261-0/+35
| | | | | Bug: 12295276 Change-Id: Id359c92acde44758b12929e7bac719d5c9c7577b
* Fix unit test for If8c94ef91ed58bb5028f51be7c8d9beb677436a4Ken Wakasa2013-10-111-1/+1
| | | | Change-Id: I056013de3a5e09feed429dfd8097d3d85331a0ab
* Accept double-space-period after emoji.Jean Chalard2013-10-041-4/+11
| | | | | | | | This also includes a fix that allows this code to read surrogate pairs in this processing. Bug: 11070482 Change-Id: If5ef8d6863938252f09128b7e99ea07ece6e7019
* Improve trailing quotes processingJean Chalard2013-09-171-0/+7
| | | | | Bug: 10445496 Change-Id: Ib7bd05aea59ae6c9b8ce31299ef2235521b0e350
* Add tests for start composingJean Chalard2013-08-211-0/+28
| | | | | Bug: 10403176 Change-Id: I510bf1dccf6795426e6fb1b36181b18039a0f435
* Support languages that don't use spaces.Jean Chalard2013-08-161-0/+15
| | | | | | | Thai is an example. Bug: 10138062 Change-Id: Ib9a8264c77ed42b4256432d7c8a60d08575dcdc7
* Adjust a test for a spec change.Jean Chalard2013-08-081-1/+1
| | | | | Bug: 8911898 Change-Id: Iede69ec2d9870df0add5ab818613fbb8e1f943c2
* Fix Google spell checker testsSatoshi Kataoka2013-05-011-26/+26
| | | | | | Bug: 8613307 Change-Id: Ief04a4abb6dc1f79660a2e419c9c5e271802b5a1
* 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