Bug 1171789 - Add updated summary to tab queue preference item in test. r=liuche
authorMichael Comella <michael.l.comella@gmail.com>
Fri, 12 Jun 2015 11:10:19 -0700
changeset 279472 414fa69645a80096fb1cd3142a7497335e7943bf
parent 279471 f89a37d280017bbce53fb6cc46584c372bd0b412
child 279473 cec6df0d52238e0c6e42ffdd3c056b54f27aa944
push id4932
push userjlund@mozilla.com
push dateMon, 10 Aug 2015 18:23:06 +0000
treeherdermozilla-beta@6dd5a4f5f745 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersliuche
bugs1171789
milestone41.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1171789 - Add updated summary to tab queue preference item in test. r=liuche
mobile/android/tests/browser/robocop/StringHelper.java
mobile/android/tests/browser/robocop/testSettingsMenuItems.java
--- a/mobile/android/tests/browser/robocop/StringHelper.java
+++ b/mobile/android/tests/browser/robocop/StringHelper.java
@@ -188,16 +188,17 @@ public class StringHelper {
     public final String PDF_LABEL;
     public final String DOWNLOADS_LABEL;
     public final String ADDONS_LABEL;
     public final String LOGINS_LABEL;
     public final String APPS_LABEL;
     public final String SETTINGS_LABEL;
     public final String GUEST_MODE_LABEL;
     public final String TAB_QUEUE_LABEL;
+    public final String TAB_QUEUE_SUMMARY;
 
     // Android 3.0+
     public final String TOOLS_LABEL;
     public final String PAGE_LABEL;
 
     // Android 2.3 and lower only
     public final String MORE_LABEL = "More";
     public final String RELOAD_LABEL;
@@ -362,16 +363,17 @@ public class StringHelper {
         PDF_LABEL = res.getString(R.string.save_as_pdf);
         DOWNLOADS_LABEL = res.getString(R.string.downloads);
         ADDONS_LABEL = res.getString(R.string.addons);
         LOGINS_LABEL = res.getString(R.string.logins);
         APPS_LABEL = res.getString(R.string.apps);
         SETTINGS_LABEL = res.getString(R.string.settings);
         GUEST_MODE_LABEL = res.getString(R.string.new_guest_session);
         TAB_QUEUE_LABEL = res.getString(R.string.pref_tab_queue_title);
+        TAB_QUEUE_SUMMARY = res.getString(R.string.pref_tab_queue_summary);
 
         // Android 3.0+
         TOOLS_LABEL = res.getString(R.string.tools);
         PAGE_LABEL = res.getString(R.string.page);
 
         // Android 2.3 and lower only
         RELOAD_LABEL = res.getString(R.string.reload);
         FORWARD_LABEL = res.getString(R.string.forward);
--- a/mobile/android/tests/browser/robocop/testSettingsMenuItems.java
+++ b/mobile/android/tests/browser/robocop/testSettingsMenuItems.java
@@ -201,18 +201,17 @@ public class testSettingsMenuItems exten
         // Automatic updates
         if (AppConstants.MOZ_UPDATER) {
             String[] autoUpdateUi = { "Download updates automatically", "Only over Wi-Fi", "Always", "Only over Wi-Fi", "Never" };
             settingsMap.get(PATH_CUSTOMIZE).add(autoUpdateUi);
         }
 
         // Tab Queue
         if (AppConstants.NIGHTLY_BUILD && AppConstants.MOZ_ANDROID_TAB_QUEUE) {
-            final String expected = "Queue links for later instead of switching to " + mStringHelper.BRAND_NAME + " each time";
-            String[] tabQueue = { mStringHelper.TAB_QUEUE_LABEL, expected };
+            final String[] tabQueue = { mStringHelper.TAB_QUEUE_LABEL, mStringHelper.TAB_QUEUE_SUMMARY };
             settingsMap.get(PATH_CUSTOMIZE).add(tabQueue);
         }
 
         // Crash reporter
         if (AppConstants.MOZ_CRASHREPORTER) {
             String[] crashReporterUi = { "Crash Reporter", mStringHelper.BRAND_NAME + " submits crash reports to help Mozilla make your browser more stable and secure" };
             settingsMap.get(PATH_MOZILLA).add(crashReporterUi);
         }