diff --git a/tests/src/com/android/inputmethod/keyboard/layout/Symbols.java b/tests/src/com/android/inputmethod/keyboard/layout/Symbols.java index bf46d5d0db0baf4504a441bb8d7ec4898c8f93a3..6fcfa052037d56d5fa02a2cd470bc614980a7a57 100644 --- a/tests/src/com/android/inputmethod/keyboard/layout/Symbols.java +++ b/tests/src/com/android/inputmethod/keyboard/layout/Symbols.java @@ -30,14 +30,13 @@ public final class Symbols extends LayoutBase { } public static ExpectedKey[][] getDefaultLayout(final boolean isPhone) { - final ExpectedKeyboardBuilder builder = new ExpectedKeyboardBuilder(SYMBOLS_COMMON); + final ExpectedKeyboardBuilder builder = new ExpectedKeyboardBuilder(getLayout(isPhone)); builder.replaceKeyOfLabel(CURRENCY, Symbols.CURRENCY_DOLLAR); builder.replaceKeyOfLabel(DOUBLE_QUOTE, key("\"", join(Symbols.DOUBLE_QUOTES_9LR, Symbols.DOUBLE_ANGLE_QUOTES_LR))); builder.replaceKeyOfLabel(SINGLE_QUOTE, key("'", join(Symbols.SINGLE_QUOTES_9LR, Symbols.SINGLE_ANGLE_QUOTES_LR))); - final ExpectedKey[][] symbolsCommon = builder.build(); - return isPhone ? toPhoneSymbol(symbolsCommon) : toTabletSymbols(symbolsCommon); + return builder.build(); } // Functional keys. diff --git a/tests/src/com/android/inputmethod/keyboard/layout/SymbolsShifted.java b/tests/src/com/android/inputmethod/keyboard/layout/SymbolsShifted.java index d04ebf021a83c8af0cb3157399c349e8e72ce2e4..4d9ae4348d7ca82aec743ba7dbecd1583a99ea3c 100644 --- a/tests/src/com/android/inputmethod/keyboard/layout/SymbolsShifted.java +++ b/tests/src/com/android/inputmethod/keyboard/layout/SymbolsShifted.java @@ -31,11 +31,9 @@ public final class SymbolsShifted extends LayoutBase { } public static ExpectedKey[][] getDefaultLayout(final boolean isPhone) { - final ExpectedKeyboardBuilder builder = new ExpectedKeyboardBuilder(SYMBOLS_SHIFTED_COMMON); + final ExpectedKeyboardBuilder builder = new ExpectedKeyboardBuilder(getLayout(isPhone)); builder.replaceKeyOfLabel(OTHER_CURRENCIES, SymbolsShifted.CURRENCIES_OTHER_THAN_DOLLAR); - final ExpectedKey[][] symbolsShiftedCommon = builder.build(); - return isPhone ? toPhoneSymbolsShifted(symbolsShiftedCommon) - : toTabletSymbolsShifted(symbolsShiftedCommon); + return builder.build(); } // Functional key.