Fix tests
DEBUG in LatinIME has been changed by Ie52007dc to mean both DebugSettings.PREF_DEBUG_MODE and Settings.PREF_KEY_IS_INTERNAL instead of just DEBUG_MODE as used to be the case. Tests depend on the debug mode to test many things and they make sure they run in debug mode or they fail. This has tests understand the change in policy. Change-Id: Ie9f29e6a1d85e19704c8940d3fcf97c13c3dbaa6
This commit is contained in:
parent
d9190f8e8f
commit
d0d3d813d2
1 changed files with 3 additions and 3 deletions
|
@ -162,9 +162,9 @@ public class InputTestsBase extends ServiceTestCase<LatinIMEForTests> {
|
|||
return previousSetting;
|
||||
}
|
||||
|
||||
// returns the previous setting value
|
||||
protected boolean setDebugMode(final boolean value) {
|
||||
return setBooleanPreference(DebugSettings.PREF_DEBUG_MODE, value, false);
|
||||
protected void setDebugMode(final boolean value) {
|
||||
setBooleanPreference(DebugSettings.PREF_DEBUG_MODE, value, false);
|
||||
setBooleanPreference(Settings.PREF_KEY_IS_INTERNAL, value, false);
|
||||
}
|
||||
|
||||
protected EditorInfo enrichEditorInfo(final EditorInfo ei) {
|
||||
|
|
Loading…
Reference in a new issue