Fix build
Missing change after a thousandth comment fix Change-Id: Iec48f892978507fb9823236cd1c5a70209b58b0emain
parent
b6e128cc05
commit
90adbc7fdf
|
@ -19,7 +19,7 @@ package com.android.inputmethod.latin;
|
||||||
import android.test.AndroidTestCase;
|
import android.test.AndroidTestCase;
|
||||||
import android.test.suitebuilder.annotation.SmallTest;
|
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;
|
import com.android.inputmethod.latin.utils.StringUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -38,7 +38,8 @@ public class WordComposerTests extends AndroidTestCase {
|
||||||
final String STR_WITHIN_BMP = "abcdef";
|
final String STR_WITHIN_BMP = "abcdef";
|
||||||
final int[] CODEPOINTS_WITHIN_BMP = StringUtils.toCodePointArray(STR_WITHIN_BMP);
|
final int[] CODEPOINTS_WITHIN_BMP = StringUtils.toCodePointArray(STR_WITHIN_BMP);
|
||||||
final int[] COORDINATES_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";
|
final String PREVWORD = "prevword";
|
||||||
wc.setComposingWord(CODEPOINTS_WITHIN_BMP, COORDINATES_WITHIN_BMP, PREVWORD);
|
wc.setComposingWord(CODEPOINTS_WITHIN_BMP, COORDINATES_WITHIN_BMP, PREVWORD);
|
||||||
assertEquals(wc.size(),
|
assertEquals(wc.size(),
|
||||||
|
@ -70,8 +71,9 @@ public class WordComposerTests extends AndroidTestCase {
|
||||||
final String STR_WITH_SUPPLEMENTARY_CHAR = "abcde\uD861\uDED7fgh";
|
final String STR_WITH_SUPPLEMENTARY_CHAR = "abcde\uD861\uDED7fgh";
|
||||||
final int[] CODEPOINTS_WITH_SUPPLEMENTARY_CHAR =
|
final int[] CODEPOINTS_WITH_SUPPLEMENTARY_CHAR =
|
||||||
StringUtils.toCodePointArray(STR_WITH_SUPPLEMENTARY_CHAR);
|
StringUtils.toCodePointArray(STR_WITH_SUPPLEMENTARY_CHAR);
|
||||||
final int[] COORDINATES_WITH_SUPPLEMENTARY_CHAR = Keyboard.getCoordinatesWithoutKeyboard(
|
final int[] COORDINATES_WITH_SUPPLEMENTARY_CHAR =
|
||||||
CODEPOINTS_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,
|
wc.setComposingWord(CODEPOINTS_WITH_SUPPLEMENTARY_CHAR, COORDINATES_WITH_SUPPLEMENTARY_CHAR,
|
||||||
null /* previousWord */);
|
null /* previousWord */);
|
||||||
assertEquals(wc.size(), CODEPOINTS_WITH_SUPPLEMENTARY_CHAR.length);
|
assertEquals(wc.size(), CODEPOINTS_WITH_SUPPLEMENTARY_CHAR.length);
|
||||||
|
|
Loading…
Reference in New Issue