History log of /cts/tests/tests/text/src/android/text/method/cts/DateTimeKeyListenerTest.java
Revision Date Author Comments
e86ece2b76ccdf1d515b13018dd7c49241055ee3 26-Jan-2012 Brian Muramatsu <btmura@google.com> Remove Test Annotations

These annotations are not being parsed by any program.
Also they are distracting to readers and are painful to
maintain. Furthermore, they prevent us from adding the
LOCAL_SDK_CURRENT clause to Makefiles which is useful
to detect and stop us from using private APIs.

Change-Id: Id93b3a80c73df808c342e489f1434261f288204c
300d755fcaa7274f1570f53d34c7a657bc420ab6 16-Mar-2011 Brian Muramatsu <btmura@android.com> 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
f176eafe119e8065c29f6eb99d62d01274581174 27-Jul-2010 Brian Muramatsu <btmura@google.com> manual cherry-pick of 45f8e6a523a096a3781f90d4fd5d54dcc0673a7e

Change-Id: I770948540f3aca9d930edea7a12119ff63fe9bdf
dc4fcb2f0b734c9e5ca03a97429bf3bd9b189aba 22-Apr-2010 Brian Muramatsu <btmura@android.com> Key Character Map Compatibility Fixes

Bug 2183699

Several CTS tests expect the keyboard character map to be QWERTY.
Fix the tests so they are keyboard character map agnostic by
replacing the sendKey calls to sendStringSync calls which load
the key character map and figure out what the real keys need to
be pressed. Avoid using literal A and try to figure out what the
real key would be needed to produce an A.

Change-Id: Ie2592a22e28e9cbad429403e276ef32f4799d203
3da7534f2880068b90b88585c45be62751dbfd6b 13-Jan-2010 The Android Open Source Project <initial-contribution@android.com> android-2.1_r1 snapshot
3487313ff582d8a7ae2bf58e7379c4577522dd61 16-Apr-2009 Scott Su <> AI 146513: am: CL 146058 am: CL 146056 CTS: add test cases for android.text.method.BaseKeyListener, QwertyKeyListener, TextKeyListener, MultiTapKeyListener, DigitsKeyListener, NumberKeyListener, TimeKeyListener, DateKeyListener and DateTimeKeyListener
Original author: sus
Merged from: //branches/cupcake/...
Original author: android-build

Automated import of CL 146513
244026ee0b3409d529efee485d3a2f4702824861 14-Apr-2009 Scott Su <> AI 146058: am: CL 146056 CTS: add test cases for android.text.method.BaseKeyListener, QwertyKeyListener, TextKeyListener, MultiTapKeyListener, DigitsKeyListener, NumberKeyListener, TimeKeyListener, DateKeyListener and DateTimeKeyListener
Original author: sus
Merged from: //branches/cupcake/...

Automated import of CL 146058
c3a243ab5f24769c63f1fedeadb923e2e6975251 14-Apr-2009 Scott Su <> AI 146056: CTS: add test cases for android.text.method.BaseKeyListener, QwertyKeyListener, TextKeyListener, MultiTapKeyListener, DigitsKeyListener, NumberKeyListener, TimeKeyListener, DateKeyListener and DateTimeKeyListener

Automated import of CL 146056