aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2012-02-01 18:14:32 +0900
committerTadashi G. Takaoka <takaoka@google.com>2012-02-01 19:33:26 +0900
commitff858c7ff5e747c17ff6d9d1908e700ad30ded85 (patch)
tree75a001822ebd69e251574c48a08a1df08872dd43 /tests
parenta5c96f376ad57e78a88942bb618e067054ed818a (diff)
downloadlatinime-ff858c7ff5e747c17ff6d9d1908e700ad30ded85.tar.gz
latinime-ff858c7ff5e747c17ff6d9d1908e700ad30ded85.tar.xz
latinime-ff858c7ff5e747c17ff6d9d1908e700ad30ded85.zip
Use MoreKeySpecParser to parse puctuations strip resources
This change also * Doesn't use Key.getRtlParenthesisCode to get correct parentheses code in RTL context. Intead uses the outputText feature of moreKeys specification. * Move CVS string parser from KeyStyles to Utils. Bug: 5948247 Change-Id: I45752c7d01b4f7d3f3da900b110a2185b336a1f0
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/inputmethod/keyboard/internal/KeyStylesTests.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/src/com/android/inputmethod/keyboard/internal/KeyStylesTests.java b/tests/src/com/android/inputmethod/keyboard/internal/KeyStylesTests.java
index 2ae8027af..54a8e6246 100644
--- a/tests/src/com/android/inputmethod/keyboard/internal/KeyStylesTests.java
+++ b/tests/src/com/android/inputmethod/keyboard/internal/KeyStylesTests.java
@@ -20,6 +20,7 @@ import android.content.res.Resources;
import android.test.AndroidTestCase;
import android.text.TextUtils;
+import com.android.inputmethod.latin.Utils;
import com.android.inputmethod.latin.tests.R;
import java.util.Arrays;
@@ -39,7 +40,7 @@ public class KeyStylesTests extends AndroidTestCase {
}
private void assertTextArray(String message, String value, String ... expected) {
- final String actual[] = KeyStyles.parseCsvString(value, mTestResources,
+ final String actual[] = Utils.parseCsvString(value, mTestResources,
R.string.empty_string);
if (expected.length == 0) {
assertNull(message, actual);