aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2014-03-20 02:56:05 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-20 02:56:05 -0700
commit600a7300047e0dfaec6c6b5724f8e1051f9f775a (patch)
treee02ca2a5faf535c168f200eb8a00c3256ffea160 /tests/src
parent0d00e56b54ee7b5f3ed48f28b91b4fa0e764d6db (diff)
parent0c268b08b69e9f4f730dc145bb86522ca2964a52 (diff)
downloadlatinime-600a7300047e0dfaec6c6b5724f8e1051f9f775a.tar.gz
latinime-600a7300047e0dfaec6c6b5724f8e1051f9f775a.tar.xz
latinime-600a7300047e0dfaec6c6b5724f8e1051f9f775a.zip
am 0c268b08: Merge "Refactor KeyboardTextsSet class"
* commit '0c268b08b69e9f4f730dc145bb86522ca2964a52': Refactor KeyboardTextsSet class
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/com/android/inputmethod/keyboard/internal/MoreKeySpecSplitTests.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/src/com/android/inputmethod/keyboard/internal/MoreKeySpecSplitTests.java b/tests/src/com/android/inputmethod/keyboard/internal/MoreKeySpecSplitTests.java
index 42a94f420..d01c2ec79 100644
--- a/tests/src/com/android/inputmethod/keyboard/internal/MoreKeySpecSplitTests.java
+++ b/tests/src/com/android/inputmethod/keyboard/internal/MoreKeySpecSplitTests.java
@@ -51,10 +51,13 @@ public class MoreKeySpecSplitTests extends InstrumentationTestCase {
}.runInLocale(targetContext.getResources(), TEST_LOCALE);
final String[] testResourceNames = getAllResourceIdNames(
com.android.inputmethod.latin.tests.R.string.class);
- mTextsSet.loadStringResourcesInternal(instrumentation.getContext(), testResourceNames,
+ final Context testContext = instrumentation.getContext();
+ final Resources testRes = testContext.getResources();
+ final String testResPackageName = testRes.getResourcePackageName(
// This dummy raw resource is needed to be able to load string resources from a test
// APK successfully.
com.android.inputmethod.latin.tests.R.raw.dummy_resource_for_testing);
+ mTextsSet.loadStringResourcesInternal(testRes, testResourceNames, testResPackageName);
}
private static String[] getAllResourceIdNames(final Class<?> resourceIdClass) {