Index: content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java |
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java b/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java |
index f33e53c268d773e0497a2c7104302eb6acba5a51..5bfc07353b4f75196eae04bf1c4c5df72eb60d62 100644 |
--- a/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java |
+++ b/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java |
@@ -47,6 +47,7 @@ public class ImeTest extends ContentShellTestBase { |
+ "<br/><textarea id=\"textarea\" rows=\"4\" cols=\"20\"></textarea>" |
+ "<br/><p><span id=\"plain_text\">This is Plain Text One</span></p>" |
+ "</form></body></html>"); |
+ private static final int COMPOSITION_KEY_CODE = 229; |
private TestAdapterInputConnection mConnection; |
private ImeAdapter mImeAdapter; |
@@ -709,7 +710,7 @@ public class ImeTest extends ContentShellTestBase { |
// H |
expectUpdateStateCall(mConnection); |
setComposingText(mConnection, "h", 1); |
- assertEquals(KeyEvent.KEYCODE_H, mImeAdapter.mLastSyntheticKeyCode); |
+ assertEquals(COMPOSITION_KEY_CODE, mImeAdapter.mLastSyntheticKeyCode); |
bcwhite
2015/01/13 15:33:43
You should still test for KEYCODE_H but enable it
|
// Simulate switch of input fields. |
finishComposingText(mConnection); |
@@ -717,7 +718,7 @@ public class ImeTest extends ContentShellTestBase { |
// H |
expectUpdateStateCall(mConnection); |
setComposingText(mConnection, "h", 1); |
- assertEquals(KeyEvent.KEYCODE_H, mImeAdapter.mLastSyntheticKeyCode); |
+ assertEquals(COMPOSITION_KEY_CODE, mImeAdapter.mLastSyntheticKeyCode); |
} |
@SmallTest |