Bug 1186653 - QR code input setting item test. r=liuche

This commit is contained in:
Karim Benhmida 2015-07-22 15:07:10 -07:00
parent ce9644d93f
commit 175644f8bd
2 changed files with 10 additions and 0 deletions

View File

@ -134,6 +134,8 @@ public class StringHelper {
public final String SCROLL_TITLE_BAR_LABEL;
public final String VOICE_INPUT_TITLE_LABEL;
public final String VOICE_INPUT_SUMMARY_LABEL;
public final String QRCODE_INPUT_TITLE_LABEL;
public final String QRCODE_INPUT_SUMMARY_LABEL;
public final String TEXT_REFLOW_LABEL;
public final String CHARACTER_ENCODING_LABEL;
public final String PLUGINS_LABEL;
@ -323,6 +325,8 @@ public class StringHelper {
SCROLL_TITLE_BAR_LABEL = res.getString(R.string.pref_scroll_title_bar2);
VOICE_INPUT_TITLE_LABEL = res.getString(R.string.pref_voice_input);
VOICE_INPUT_SUMMARY_LABEL = res.getString(R.string.pref_voice_input_summary);
QRCODE_INPUT_TITLE_LABEL = res.getString(R.string.pref_qrcode_enabled);
QRCODE_INPUT_SUMMARY_LABEL = res.getString(R.string.pref_qrcode_enabled_summary);
TEXT_REFLOW_LABEL = res.getString(R.string.pref_reflow_on_zoom);
CHARACTER_ENCODING_LABEL = res.getString(R.string.pref_char_encoding);
PLUGINS_LABEL = res.getString(R.string.pref_plugins);

View File

@ -233,6 +233,12 @@ public class testSettingsMenuItems extends PixelTest {
String[] voiceInputUi = { mStringHelper.VOICE_INPUT_TITLE_LABEL, mStringHelper.VOICE_INPUT_SUMMARY_LABEL };
settingsMap.get(PATH_DISPLAY).add(voiceInputUi);
}
// QR Code input
if (InputOptionsUtils.supportsQrCodeReader(this.getActivity().getApplicationContext())) {
String[] qrCodeInputUi = { mStringHelper.QRCODE_INPUT_TITLE_LABEL, mStringHelper.QRCODE_INPUT_SUMMARY_LABEL };
settingsMap.get(PATH_DISPLAY).add(qrCodeInputUi);
}
}
public void checkMenuHierarchy(Map<String[], List<String[]>> settingsMap) {