Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0d3d813 authored by Jean Chalard's avatar Jean Chalard
Browse files

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
parent d9190f8e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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) {