Merge "Rename base test class KeySpecParserTestsBase"
This commit is contained in:
commit
258971daac
3 changed files with 7 additions and 3 deletions
|
@ -21,7 +21,7 @@ import android.test.suitebuilder.annotation.SmallTest;
|
|||
import com.android.inputmethod.latin.Constants;
|
||||
|
||||
@SmallTest
|
||||
public final class KeySpecParserTests extends KeySpecParserBase {
|
||||
public final class KeySpecParserTests extends KeySpecParserTestsBase {
|
||||
@Override
|
||||
protected void assertParser(final String message, final String keySpec,
|
||||
final String expectedLabel, final String expectedOutputText, final int expectedIcon,
|
||||
|
|
|
@ -30,7 +30,7 @@ import com.android.inputmethod.latin.utils.RunInLocale;
|
|||
|
||||
import java.util.Locale;
|
||||
|
||||
abstract class KeySpecParserBase extends AndroidTestCase {
|
||||
abstract class KeySpecParserTestsBase extends AndroidTestCase {
|
||||
private final static Locale TEST_LOCALE = Locale.ENGLISH;
|
||||
protected final KeyboardCodesSet mCodesSet = new KeyboardCodesSet();
|
||||
protected final KeyboardTextsSet mTextsSet = new KeyboardTextsSet();
|
||||
|
@ -251,8 +251,12 @@ abstract class KeySpecParserBase extends AndroidTestCase {
|
|||
}
|
||||
|
||||
public void testFormatError() {
|
||||
assertParserError("Null spec", null, null,
|
||||
null, ICON_UNDEFINED, CODE_UNSPECIFIED);
|
||||
assertParserError("Empty spec", "", null,
|
||||
null, ICON_UNDEFINED, CODE_UNSPECIFIED);
|
||||
assertParserError("Single bar", "|",
|
||||
"|", null, ICON_UNDEFINED, '|');
|
||||
assertParserError("Empty label with outputText", "|a",
|
||||
null, "a", ICON_UNDEFINED, CODE_UNSPECIFIED);
|
||||
assertParserError("Empty label with code", "|" + CODE_SETTINGS,
|
|
@ -24,7 +24,7 @@ import java.util.Arrays;
|
|||
import java.util.Locale;
|
||||
|
||||
@SmallTest
|
||||
public final class MoreKeySpecTests extends KeySpecParserBase {
|
||||
public final class MoreKeySpecTests extends KeySpecParserTestsBase {
|
||||
@Override
|
||||
protected void assertParser(final String message, final String moreKeySpec,
|
||||
final String expectedLabel, final String expectedOutputText, final int expectedIconId,
|
||||
|
|
Loading…
Reference in a new issue