Fix Some Tests to Support Different Kcms
- DateTimeKeyListenerTest/TimeKeyListenerTest
Check that the letters like 'a' and 'p' can be produced
by the KeyCharacterMap, because DateTimeKeyListener will
return '1' if A is mapped to 1. This is because '1' appears
first in the array of acceptable characters first. This is
likely a bug in DateTimeKeyListener.
- NumberKeyListenerTest
Check that the implementation of lookUp somewhat works
by having getAcceptableChars return nothing to test that
that lookUp does reject characters when configured to do so.
- TextViewTest
Remove the sending of key events in the set/getKeyListener
tests since that is covered by other tests. Make the test
that checks that errors are not cleared when entering an
unacceptable character by using a listener that rejects all
characters.
Change-Id: I4e73f0616b9e602f9b883a82be5fbd7b2dc5ca9a
4 files changed