diff options
author | 2013-12-18 16:53:54 +0900 | |
---|---|---|
committer | 2013-12-18 18:10:56 +0900 | |
commit | dfbe2bfe089b301819039e9b3a7d2c307e6beac7 (patch) | |
tree | c77a5334a0a072c0b81bc1e9fc080bdd350c77b6 /tests/src/com/android/inputmethod/latin/PunctuationTests.java | |
parent | d5f5dd74c2e0946d4686a4f22cda1591b34b6729 (diff) | |
download | latinime-dfbe2bfe089b301819039e9b3a7d2c307e6beac7.tar.gz latinime-dfbe2bfe089b301819039e9b3a7d2c307e6beac7.tar.xz latinime-dfbe2bfe089b301819039e9b3a7d2c307e6beac7.zip |
Add some info to test crashes to help diagnose flakiness
Bug: 11142685
Change-Id: Ic3a5d452f6c325248ac4e1bfa37774c58586f359
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/PunctuationTests.java')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/PunctuationTests.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/src/com/android/inputmethod/latin/PunctuationTests.java b/tests/src/com/android/inputmethod/latin/PunctuationTests.java index 84ff6b307..d5c06e223 100644 --- a/tests/src/com/android/inputmethod/latin/PunctuationTests.java +++ b/tests/src/com/android/inputmethod/latin/PunctuationTests.java @@ -16,6 +16,7 @@ package com.android.inputmethod.latin; +import android.provider.Settings.Secure; import android.test.suitebuilder.annotation.LargeTest; import com.android.inputmethod.latin.R; @@ -153,7 +154,9 @@ public class PunctuationTests extends InputTestsBase { final String WORD_TO_TYPE = "you'f "; final String EXPECTED_RESULT = "you'd "; type(WORD_TO_TYPE); - assertEquals("auto-correction with single quote inside", + assertEquals("auto-correction with single quote inside. ID = " + + Secure.getString(getContext().getContentResolver(), Secure.ANDROID_ID) + + " ; Suggestions = " + mLatinIME.getSuggestedWords(), EXPECTED_RESULT, mEditText.getText().toString()); } @@ -161,7 +164,9 @@ public class PunctuationTests extends InputTestsBase { final String WORD_TO_TYPE = "'tgis' "; final String EXPECTED_RESULT = "'this' "; type(WORD_TO_TYPE); - assertEquals("auto-correction with single quotes around", + assertEquals("auto-correction with single quotes around. ID = " + + Secure.getString(getContext().getContentResolver(), Secure.ANDROID_ID) + + " ; Suggestions = " + mLatinIME.getSuggestedWords(), EXPECTED_RESULT, mEditText.getText().toString()); } } |