am 90adbc7f: Fix build
* commit '90adbc7fdf5c18d2b9be1149d3d4927ec5ecf802': Fix buildmain
commit
042b560a80
|
@ -19,7 +19,7 @@ package com.android.inputmethod.latin;
|
|||
import android.test.AndroidTestCase;
|
||||
import android.test.suitebuilder.annotation.SmallTest;
|
||||
|
||||
import com.android.inputmethod.keyboard.Keyboard;
|
||||
import com.android.inputmethod.latin.utils.CoordinateUtils;
|
||||
import com.android.inputmethod.latin.utils.StringUtils;
|
||||
|
||||
/**
|
||||
|
@ -38,7 +38,8 @@ public class WordComposerTests extends AndroidTestCase {
|
|||
final String STR_WITHIN_BMP = "abcdef";
|
||||
final int[] CODEPOINTS_WITHIN_BMP = StringUtils.toCodePointArray(STR_WITHIN_BMP);
|
||||
final int[] COORDINATES_WITHIN_BMP =
|
||||
Keyboard.getCoordinatesWithoutKeyboard(CODEPOINTS_WITHIN_BMP);
|
||||
CoordinateUtils.newCoordinateArray(CODEPOINTS_WITHIN_BMP.length,
|
||||
Constants.NOT_A_COORDINATE, Constants.NOT_A_COORDINATE);
|
||||
final String PREVWORD = "prevword";
|
||||
wc.setComposingWord(CODEPOINTS_WITHIN_BMP, COORDINATES_WITHIN_BMP, PREVWORD);
|
||||
assertEquals(wc.size(),
|
||||
|
@ -70,8 +71,9 @@ public class WordComposerTests extends AndroidTestCase {
|
|||
final String STR_WITH_SUPPLEMENTARY_CHAR = "abcde\uD861\uDED7fgh";
|
||||
final int[] CODEPOINTS_WITH_SUPPLEMENTARY_CHAR =
|
||||
StringUtils.toCodePointArray(STR_WITH_SUPPLEMENTARY_CHAR);
|
||||
final int[] COORDINATES_WITH_SUPPLEMENTARY_CHAR = Keyboard.getCoordinatesWithoutKeyboard(
|
||||
CODEPOINTS_WITH_SUPPLEMENTARY_CHAR);
|
||||
final int[] COORDINATES_WITH_SUPPLEMENTARY_CHAR =
|
||||
CoordinateUtils.newCoordinateArray(CODEPOINTS_WITH_SUPPLEMENTARY_CHAR.length,
|
||||
Constants.NOT_A_COORDINATE, Constants.NOT_A_COORDINATE);
|
||||
wc.setComposingWord(CODEPOINTS_WITH_SUPPLEMENTARY_CHAR, COORDINATES_WITH_SUPPLEMENTARY_CHAR,
|
||||
null /* previousWord */);
|
||||
assertEquals(wc.size(), CODEPOINTS_WITH_SUPPLEMENTARY_CHAR.length);
|
||||
|
|
Loading…
Reference in New Issue