am 258971da: Merge "Rename base test class KeySpecParserTestsBase"
* commit '258971daace41af68373a606fc9a988d588f5bd3': Rename base test class KeySpecParserTestsBasemain
commit
15b5d0c266
|
@ -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 New Issue