mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Add moreKeys helper method for unit test
Bug: 13017434 Change-Id: Icfaa4093686e2d8dec00d5acce894bfc6a2474b7
This commit is contained in:
parent
e06eb8cff4
commit
74f259a74e
tests/src/com/android/inputmethod/keyboard/layout
@ -76,6 +76,12 @@ public abstract class AbstractLayoutBase {
|
||||
return ExpectedKey.newInstance(label, code);
|
||||
}
|
||||
|
||||
// Helper method to create {@link ExpectedKey} array by joining {@link ExpectedKey},
|
||||
// {@link ExpectedKey} array, and {@link String}.
|
||||
public static ExpectedKey[] moreKeys(final Object ... moreKeys) {
|
||||
return joinKeys(moreKeys);
|
||||
}
|
||||
|
||||
// Helper method to create {@link ExpectedKey} array by joining {@link ExpectedKey},
|
||||
// {@link ExpectedKey} array, and {@link String}.
|
||||
public static ExpectedKey[] joinKeys(final Object ... keys) {
|
||||
|
@ -83,6 +83,12 @@ abstract class LayoutTestsBase extends KeyboardLayoutSetTestsBase {
|
||||
return AbstractLayoutBase.moreKey(label, outputText);
|
||||
}
|
||||
|
||||
// Helper method to create {@link ExpectedKey} array by joining {@link ExpectedKey},
|
||||
// {@link ExpectedKey} array, and {@link String}.
|
||||
static ExpectedKey[] moreKeys(final Object ... moreKeys) {
|
||||
return AbstractLayoutBase.joinKeys(moreKeys);
|
||||
}
|
||||
|
||||
// Helper method to create {@link ExpectedKey} array by joining {@link ExpectedKey},
|
||||
// {@link ExpectedKey} array, and {@link String}.
|
||||
static ExpectedKey[] joinKeys(final Object ... keys) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user