mobile/android/base/tests/StringHelper.java

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mobile/android/base/tests/StringHelper.java	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,184 @@
     1.4 +package org.mozilla.gecko.tests;
     1.5 +
     1.6 +
     1.7 +public class StringHelper {
     1.8 +    // Note: DEFAULT_BOOKMARKS_TITLES.length == DEFAULT_BOOKMARKS_URLS.length
     1.9 +    public static final String[] DEFAULT_BOOKMARKS_TITLES = new String[] {
    1.10 +        "Firefox: About your browser",
    1.11 +        "Firefox: Support",
    1.12 +        "Firefox: Customize with add-ons"
    1.13 +    };
    1.14 +    public static final String[] DEFAULT_BOOKMARKS_URLS = new String[] {
    1.15 +        "about:firefox",
    1.16 +        "http://support.mozilla.org/en-US/products/mobile",
    1.17 +        "https://addons.mozilla.org/en-US/android/"
    1.18 +    };
    1.19 +    public static final int DEFAULT_BOOKMARKS_COUNT = DEFAULT_BOOKMARKS_TITLES.length;
    1.20 +
    1.21 +    // About pages
    1.22 +    public static final String ABOUT_BLANK_URL = "about:blank";
    1.23 +    public static final String ABOUT_FIREFOX_URL = "about:firefox";
    1.24 +    public static final String ABOUT_DOWNLOADS_URL = "about:downloads";
    1.25 +    public static final String ABOUT_HOME_URL = "about:home";
    1.26 +    public static final String ABOUT_ADDONS_URL = "about:addons";
    1.27 +    public static final String ABOUT_APPS_URL = "about:apps";
    1.28 +
    1.29 +    // About pages' titles
    1.30 +    public static final String ABOUT_HOME_TITLE = "";
    1.31 +
    1.32 +    // Context Menu menu items
    1.33 +    public static final String[] CONTEXT_MENU_ITEMS_IN_PRIVATE_TAB = new String[] {
    1.34 +        "Open Link in Private Tab",
    1.35 +        "Copy Link",
    1.36 +        "Share Link",
    1.37 +        "Bookmark Link"
    1.38 +    };
    1.39 +
    1.40 +    public static final String[] CONTEXT_MENU_ITEMS_IN_NORMAL_TAB = new String[] {
    1.41 +        "Open Link in New Tab",
    1.42 +        "Open Link in Private Tab",
    1.43 +        "Copy Link",
    1.44 +        "Share Link",
    1.45 +        "Bookmark Link"
    1.46 +    };
    1.47 +
    1.48 +    public static final String[] BOOKMARK_CONTEXT_MENU_ITEMS = new String[] {
    1.49 +        "Open in New Tab",
    1.50 +        "Open in Private Tab",
    1.51 +        "Edit",
    1.52 +        "Remove",
    1.53 +        "Share",
    1.54 +        "Add to Home Screen"
    1.55 +    };
    1.56 +
    1.57 +    public static final String[] CONTEXT_MENU_ITEMS_IN_URL_BAR = new String[] {
    1.58 +        "Share",
    1.59 +        "Copy Address",
    1.60 +        "Edit Site Settings",
    1.61 +        "Add to Home Screen"
    1.62 +    };
    1.63 +
    1.64 +    public static final String TITLE_PLACE_HOLDER = "Enter Search or Address";
    1.65 +
    1.66 +    // Robocop page urls
    1.67 +    // Note: please use getAbsoluteUrl(String url) on each robocop url to get the correct url
    1.68 +    public static final String ROBOCOP_BIG_LINK_URL = "/robocop/robocop_big_link.html";
    1.69 +    public static final String ROBOCOP_BIG_MAILTO_URL = "/robocop/robocop_big_mailto.html";
    1.70 +    public static final String ROBOCOP_BLANK_PAGE_01_URL = "/robocop/robocop_blank_01.html";
    1.71 +    public static final String ROBOCOP_BLANK_PAGE_02_URL = "/robocop/robocop_blank_02.html";
    1.72 +    public static final String ROBOCOP_BLANK_PAGE_03_URL = "/robocop/robocop_blank_03.html";
    1.73 +    public static final String ROBOCOP_BOXES_URL = "/robocop/robocop_boxes.html";
    1.74 +    public static final String ROBOCOP_GEOLOCATION_URL = "/robocop/robocop_geolocation.html";
    1.75 +    public static final String ROBOCOP_LOGIN_URL = "/robocop/robocop_login.html";
    1.76 +    public static final String ROBOCOP_OFFLINE_STORAGE_URL = "/robocop/robocop_offline_storage.html";
    1.77 +    public static final String ROBOCOP_PICTURE_LINK_URL = "/robocop/robocop_picture_link.html";
    1.78 +    public static final String ROBOCOP_SEARCH_URL = "/robocop/robocop_search.html";
    1.79 +    public static final String ROBOCOP_TEXT_PAGE_URL = "/robocop/robocop_text_page.html";
    1.80 +    public static final String ROBOCOP_ADOBE_FLASH_URL = "/robocop/robocop_adobe_flash.html";
    1.81 +    public static final String ROBOCOP_INPUT_URL = "/robocop/robocop_input.html";
    1.82 +    public static final String ROBOCOP_JS_HARNESS_URL = "/robocop/robocop_javascript.html";
    1.83 +
    1.84 +    // Robocop page titles
    1.85 +    public static final String ROBOCOP_BIG_LINK_TITLE = "Big Link";
    1.86 +    public static final String ROBOCOP_BIG_MAILTO_TITLE = "Big Mailto";
    1.87 +    public static final String ROBOCOP_BLANK_PAGE_01_TITLE = "Browser Blank Page 01";
    1.88 +    public static final String ROBOCOP_BLANK_PAGE_02_TITLE = "Browser Blank Page 02";
    1.89 +    public static final String ROBOCOP_BLANK_PAGE_03_TITLE = "Browser Blank Page 03";
    1.90 +    public static final String ROBOCOP_BOXES_TITLE = "Browser Box test";
    1.91 +    public static final String ROBOCOP_GEOLOCATION_TITLE = "Geolocation Test Page";
    1.92 +    public static final String ROBOCOP_LOGIN_TITLE = "Robocop Login";
    1.93 +    public static final String ROBOCOP_OFFLINE_STORAGE_TITLE = "Robocop offline storage";
    1.94 +    public static final String ROBOCOP_PICTURE_LINK_TITLE = "Picture Link";
    1.95 +    public static final String ROBOCOP_SEARCH_TITLE = "Robocop Search Engine";
    1.96 +    public static final String ROBOCOP_TEXT_PAGE_TITLE = "Robocop Text Page";
    1.97 +    public static final String ROBOCOP_INPUT_TITLE = "Robocop Input";
    1.98 +
    1.99 +    // Settings menu strings
   1.100 +    // Section labels - ordered as found in the settings menu
   1.101 +    public static final String CUSTOMIZE_SECTION_LABEL = "Customize";
   1.102 +    public static final String DISPLAY_SECTION_LABEL = "Display";
   1.103 +    public static final String PRIVACY_SECTION_LABEL = "Privacy";
   1.104 +    public static final String MOZILLA_SECTION_LABEL = "Mozilla";
   1.105 +    public static final String DEVELOPER_TOOLS_SECTION_LABEL = "Developer tools";
   1.106 +
   1.107 +    // Option labels
   1.108 +    // Customize
   1.109 +    public static final String SYNC_LABEL = "Sync";
   1.110 +    public static final String SEARCH_SETTINGS_LABEL = "Search settings";
   1.111 +    public static final String IMPORT_FROM_ANDROID_LABEL = "Import from Android";
   1.112 +    public static final String TABS_LABEL = "Tabs";
   1.113 +
   1.114 +    // Display
   1.115 +    public static final String TEXT_SIZE_LABEL = "Text size";
   1.116 +    public static final String TITLE_BAR_LABEL = "Title bar";
   1.117 +    public static final String TEXT_REFLOW_LABEL = "Text reflow";
   1.118 +    public static final String CHARACTER_ENCODING_LABEL = "Character encoding";
   1.119 +    public static final String PLUGINS_LABEL = "Plugins";
   1.120 + 
   1.121 +    // Title bar
   1.122 +    public static final String SHOW_PAGE_TITLE_LABEL = "Show page title";
   1.123 +    public static final String SHOW_PAGE_ADDRESS_LABEL = "Show page address";
   1.124 +
   1.125 +    // Privacy
   1.126 +    public static final String TRACKING_LABEL = "Tracking";
   1.127 +    public static final String COOKIES_LABEL = "Cookies";
   1.128 +    public static final String REMEMBER_PASSWORDS_LABEL = "Remember passwords";
   1.129 +    public static final String MASTER_PASWSWORD_LABEL = "Use master password";
   1.130 +    public static final String CLEAR_PRIVATE_DATA_LABEL = "Clear private data";
   1.131 +
   1.132 +    // Mozilla
   1.133 +    public static final String ABOUT_LABEL = "About (Fennec|Nightly|Aurora|Firefox Beta|Firefox)";
   1.134 +    public static final String FAQS_LABEL = "FAQs";
   1.135 +    public static final String FEEDBACK_LABEL = "Give feedback";
   1.136 +    public static final String PRODUCT_ANNOUNCEMENTS_LABEL = "Show product announcements";
   1.137 +    public static final String LOCATION_SERVICES_LABEL = "Mozilla location services";
   1.138 +    public static final String HELTH_REPORT_LABEL = "(Fennec|Nightly|Aurora|Firefox Beta|Firefox) Health Report";
   1.139 +    public static final String MY_HEALTH_REPORT_LABEL = "View my Health Report";
   1.140 +
   1.141 +    // Developer tools
   1.142 +    public static final String REMOTE_DEBUGGING_LABEL = "Remote debugging";
   1.143 +    public static final String LEARN_MORE_LABEL = "Learn more";
   1.144 +
   1.145 +    // Labels for the about:home tabs
   1.146 +    public static final String HISTORY_LABEL = "HISTORY";
   1.147 +    public static final String TOP_SITES_LABEL = "TOP SITES";
   1.148 +    public static final String BOOKMARKS_LABEL = "BOOKMARKS";
   1.149 +    public static final String READING_LIST_LABEL = "READING LIST";
   1.150 +    public static final String TODAY_LABEL = "Today";
   1.151 +    public static final String TABS_FROM_LAST_TIME_LABEL = "Open all tabs from last time";
   1.152 +
   1.153 +    // Desktop default bookmarks folders
   1.154 +    public static final String DESKTOP_FOLDER_LABEL = "Desktop Bookmarks";
   1.155 +    public static final String TOOLBAR_FOLDER_LABEL = "Bookmarks Toolbar";
   1.156 +    public static final String BOOKMARKS_MENU_FOLDER_LABEL = "Bookmarks Menu";
   1.157 +    public static final String UNSORTED_FOLDER_LABEL = "Unsorted Bookmarks";
   1.158 +
   1.159 +    // Menu items - some of the items are found only on android 2.3 and lower and some only on android 3.0+
   1.160 +    public static final String NEW_TAB_LABEL = "New Tab";
   1.161 +    public static final String NEW_PRIVATE_TAB_LABEL = "New Private Tab";
   1.162 +    public static final String SHARE_LABEL = "Share";
   1.163 +    public static final String FIND_IN_PAGE_LABEL = "Find in Page";
   1.164 +    public static final String DESKTOP_SITE_LABEL = "Request Desktop Site";
   1.165 +    public static final String PDF_LABEL = "Save as PDF";
   1.166 +    public static final String DOWNLOADS_LABEL = "Downloads";
   1.167 +    public static final String ADDONS_LABEL = "Add-ons";
   1.168 +    public static final String APPS_LABEL = "Apps";
   1.169 +    public static final String SETTINGS_LABEL = "Settings";
   1.170 +    public static final String GUEST_MODE_LABEL = "New Guest Session";
   1.171 +
   1.172 +    // Android 3.0+
   1.173 +    public static final String TOOLS_LABEL = "Tools";
   1.174 +    public static final String PAGE_LABEL = "Page";
   1.175 +
   1.176 +    // Android 2.3 and lower only
   1.177 +    public static final String MORE_LABEL = "More";
   1.178 +    public static final String RELOAD_LABEL = "Reload";
   1.179 +    public static final String FORWARD_LABEL = "Forward";
   1.180 +    public static final String BOOKMARK_LABEL = "Bookmark";
   1.181 +
   1.182 +    // Bookmark Toast Notification
   1.183 +    public static final String BOOKMARK_ADDED_LABEL = "Bookmark added";
   1.184 +    public static final String BOOKMARK_REMOVED_LABEL = "Bookmark removed";
   1.185 +    public static final String BOOKMARK_UPDATED_LABEL = "Bookmark updated";
   1.186 +    public static final String BOOKMARK_OPTIONS_LABEL = "Options";
   1.187 +}

mercurial