History log of /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
eacb2be8feffc49e97ae174607b69e210540111d 11-Oct-2013 Ken Wakasa <kwakasa@google.com> Fix unit test for If8c94ef91ed58bb5028f51be7c8d9beb677436a4

Change-Id: I056013de3a5e09feed429dfd8097d3d85331a0ab
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
8142fd83a6ed8dd6741579f724ebda9e2b70dd01 04-Oct-2013 Jean Chalard <jchalard@google.com> Accept double-space-period after emoji.

This also includes a fix that allows this code to read surrogate
pairs in this processing.

Bug: 11070482
Change-Id: If5ef8d6863938252f09128b7e99ea07ece6e7019
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
e8f717943f7063444cd1c777e8dd03dc738f3c4a 17-Sep-2013 Jean Chalard <jchalard@google.com> Improve trailing quotes processing

Bug: 10445496
Change-Id: Ib7bd05aea59ae6c9b8ce31299ef2235521b0e350
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
e38097dc2ae31774d49142d619f7d57708369785 21-Aug-2013 Jean Chalard <jchalard@google.com> Add tests for start composing

Bug: 10403176
Change-Id: I510bf1dccf6795426e6fb1b36181b18039a0f435
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
c239a34262358e51aedb15f2e315bbe9bcd57c4b 15-Aug-2013 Jean Chalard <jchalard@google.com> Support languages that don't use spaces.

Thai is an example.

Bug: 10138062
Change-Id: Ib9a8264c77ed42b4256432d7c8a60d08575dcdc7
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
7b8b6e4b42710a04dbda19a16b57f44a0c3caca9 07-Aug-2013 Jean Chalard <jchalard@google.com> Adjust a test for a spec change.

Bug: 8911898
Change-Id: Iede69ec2d9870df0add5ab818613fbb8e1f943c2
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
d5781eef628c2cd4ac38029040746daa4679d637 01-May-2013 Satoshi Kataoka <satok@google.com> Fix Google spell checker tests

Bug: 8613307

Change-Id: Ief04a4abb6dc1f79660a2e419c9c5e271802b5a1
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
ce6bcdd1a547c9874f05a08074cafdfea16196d6 12-Feb-2013 Tadashi G. Takaoka <takaoka@google.com> Separate caps mode related utils to CapsModeUtils

Change-Id: I32700c434b296bb3fd39e040c2dda1fe90667daf
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
b4598f7d05d6afd01ddc7ea0bed71dda837d1deb 05-Feb-2013 Tadashi G. Takaoka <takaoka@google.com> Add unit tests tags

Bug: 8131968
Change-Id: Ibca5a0d63a492134b8af401a62ca3a5748e003cf
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
516b63db2866f144a00ec7e1e6c29cb0865f5ff3 09-Jan-2013 Jean Chalard <jchalard@google.com> Fix a race condition with backspaces

And add a test to make sure it stays not-broken.

Bug: 7946604
Change-Id: I996da3d5507d591ec25a13fb57434f39843f1df5
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
240871ecafde7834ebb4270cd7758fc904a5f3a7 29-Oct-2012 Tadashi G. Takaoka <takaoka@google.com> Move code point constants from Keyboard to Constants class

Change-Id: Iee01d4d2b916d0b584531104ac865ae6e6370a3d
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
2752287c425b9be87800136bd616ee63940caaac 10-Oct-2012 Jean Chalard <jchalard@google.com> 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
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
f68fe7a9c9262a3591eeba61f34a91855a34c930 27-Jul-2012 Jean Chalard <jchalard@google.com> Don't forward phantom space state on stripper input

Bug: 6890540
Change-Id: I923b24e3bc17e7b923be4940ad739b58dca24a1f
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
0e9e7e337defe97d4ede8c59d0e925f5401f9292 05-Jul-2012 Jean Chalard <jchalard@google.com> Cleanup (A57)

We stopped cancelling manual picks a few weeks ago. This code
is dead.

Change-Id: I4032fcc3c95e9379f1839fe860a1b8a9bd7d0bc7
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
f83a6821bbf3863415378ea39d3b705954318e41 18-May-2012 Jean Chalard <jchalard@google.com> Fix some of the input logic tests

This behavior has been changed for bug#6105732

Bug: 6516976
Change-Id: Ief8225b26d831cd92a051ce25cc005270b6b1776
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
9bfb6202154e06d7156f2f374dd9359f1be4eb68 12-Apr-2012 Kurt Partridge <kep@google.com> add logPoint for manual correction (inc touch pos)

Bug: 6188932
Change-Id: Ibcc4901bcfab6632ee4c59cb58d35452218a288d
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
0d708b0cf5eb4334995dc67ba4ad38b18467faeb 23-Mar-2012 Jean Chalard <jchalard@google.com> Separate input logic tests in several categories.

The intent is to make things easier to read.

Change-Id: Ida95ac8bd4119a2497d3e2a4d92485a96316962d
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
8592ed408e8e81138172eefe2df28f00807a1e1f 23-Mar-2012 Jean Chalard <jchalard@google.com> 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
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
109728193e45262099cbf88d8d6fcc4ed05240ca 22-Mar-2012 Jean Chalard <jchalard@google.com> 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
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
6ec1209a33fe2dc151b86d3f662e22e564e2f4f8 15-Mar-2012 Jean Chalard <jchalard@google.com> Fix a bug where quotes and dashes are considered letters

Bug: 6174065
Change-Id: I702760d44ead0eeb60d06360aa3bb03c2ec73325
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
274a0643b100173ec505f2701afd51e10eeda3ff 08-Mar-2012 Jean Chalard <jchalard@google.com> 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
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
845b24d9d31072b98958c557366617ad1c34f1b7 07-Mar-2012 Jean Chalard <jchalard@google.com> Fix a bug with successive manual picks

Bug: 6121571
Change-Id: Ib16fbef1087da3b7da5539901ec57156f242f089
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
231ef8fa3e6cf0961c62b2bf54300722ea3c9b64 06-Mar-2012 satok <satok@google.com> Merge "Integrate the logic to calculate the proximities"
ca7ec2097ca6af1505c1e6aa8b81b6068ba46dae 06-Mar-2012 satok <satok@google.com> Integrate the logic to calculate the proximities

Bug: 4343280

Change-Id: I0f6a7e6912ed4abea07c10d266da4c7ccb0dae76
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
cbad260cf3bc1f0f06aacc305608809545969d9f 06-Mar-2012 Jean Chalard <jchalard@google.com> 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
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
f717c5685e3299349d5abe1ecc7d13446b9779bc 01-Mar-2012 Jean Chalard <jchalard@google.com> Add basic tests for auto-correct indicator.

Bug: 5975557
Change-Id: I39e782f89813b9d585e369e590d6288e696168a2
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
d9f6a0ebb7aba7e5047034bcd92b9e5028fbc830 24-Feb-2012 Jean Chalard <jchalard@google.com> 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
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
bb15f92d4f80677587fae87fa2dd7a29ec465b4c 22-Feb-2012 Jean Chalard <jchalard@google.com> 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
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
9159b9953d857de83ae2f90a121fcd259f5ee01d 03-Feb-2012 Jean Chalard <jchalard@google.com> Fix the auto-composer to support supplementary chars

Change-Id: I61ff218ae2ca4eb443a370e581b677755258670a
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
de60d87a60accb5df504a77188092b202a1d272c 07-Feb-2012 Jean Chalard <jchalard@google.com> Add some unit tests for punctuation and special keys

Bug: 5962053
Change-Id: I7dd68767be6e724675428910fa2c00290f76e869
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
816a8a0fd85ca0327436f8bd1cfa6928600ebc5d 07-Feb-2012 Jean Chalard <jchalard@google.com> Fix a race condition that makes tests unstable

Change-Id: Ic19d380eb64855884bc6ded8547c200dd772ffe9
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
fb684cebe8f5dac1bdb6cfa7085a07ddc66acede 02-Feb-2012 Jean Chalard <jchalard@google.com> Stop inserting a space after a manually picked word.

Bug: 4994861
Change-Id: I6ae256a94dbaddea4304304779d17025620c5025
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
825e2bbd910cce3055a4ca808d3744bc0b2cedda 02-Feb-2012 Jean Chalard <jchalard@google.com> Fix a bug when deleting the last char

And unit test

Change-Id: Ic4fc3626f8b86e10156d770d41cd6deab5d31f39
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
9242a2bcf8a6b07bb045a8356711bed1493c251e 03-Feb-2012 Jean Chalard <jchalard@google.com> 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
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
cca2183f5a9174b94e39e68fab9bc749c86743ef 02-Feb-2012 Jean Chalard <jchalard@google.com> Add unit tests in prevision of magic space removal

Bug: 4994861
Change-Id: I114a1117cf19aa6e514ac7342f733175dc5d5df1
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
a02e703289d2704963f140c44d630dcc0a65e34a 26-Jan-2012 Jean Chalard <jchalard@google.com> Add a missing brace

Change-Id: Ia51da6506d78a295b8b70a241208fb81602cf0ea
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
9184d8b2352e11a25026ea9eed7f404836a7d476 26-Jan-2012 Jean Chalard <jchalard@google.com> Add a test for moving cursor then backspace

This is a test for the case in
Bug: 5851148

Change-Id: I58ee459d85f463b445a28137bdc6c40bc3067ff5
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
41df8a98fd0b89de87c7531903262c75dc7e505b 26-Jan-2012 Jean Chalard <jchalard@google.com> Add a test case for backspace at start of line

Tests the behavior from
Bug: 5784542

Change-Id: I78ec9d77c5dd1e3ea8eff530f9d7d284a1c094d4
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
60e7718462a8c7b025ac8375b585c1da3db1e1fe 26-Jan-2012 Jean Chalard <jchalard@google.com> Add tests for double space behavior

Bug: 5875776
Change-Id: Icc28b6c5c0132a3afc8d603841c9e321f720b7c9
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
0bfe359ee42af9c4487ce56acf42c74a2510980d 25-Jan-2012 Jean Chalard <jchalard@google.com> 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
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
1e4684ad24914cde713980bb4174810bbf8bae10 24-Jan-2012 Jean Chalard <jchalard@google.com> Test that delete actually removes any selected text.

Bug: 5699301
Change-Id: I09a967eb03690251e8bd69503285c982d6958a7d
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
bc10e4145ea3d48b577ea3eed3675b2bf6546073 20-Jan-2012 Jean Chalard <jchalard@google.com> 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
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java
83c72d1dae7e91ba8ae50d79b11b1c0dd67451c2 19-Jan-2012 Jean Chalard <jchalard@google.com> Add the first tests for the input login in LatinIME class

Change-Id: Ifcf9ab55ee01bf7c6c6829e699246e5654975456
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/InputLogicTests.java