mobile/android/base/tests/StringHelper.java

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 package org.mozilla.gecko.tests;
michael@0 2
michael@0 3
michael@0 4 public class StringHelper {
michael@0 5 // Note: DEFAULT_BOOKMARKS_TITLES.length == DEFAULT_BOOKMARKS_URLS.length
michael@0 6 public static final String[] DEFAULT_BOOKMARKS_TITLES = new String[] {
michael@0 7 "Firefox: About your browser",
michael@0 8 "Firefox: Support",
michael@0 9 "Firefox: Customize with add-ons"
michael@0 10 };
michael@0 11 public static final String[] DEFAULT_BOOKMARKS_URLS = new String[] {
michael@0 12 "about:firefox",
michael@0 13 "http://support.mozilla.org/en-US/products/mobile",
michael@0 14 "https://addons.mozilla.org/en-US/android/"
michael@0 15 };
michael@0 16 public static final int DEFAULT_BOOKMARKS_COUNT = DEFAULT_BOOKMARKS_TITLES.length;
michael@0 17
michael@0 18 // About pages
michael@0 19 public static final String ABOUT_BLANK_URL = "about:blank";
michael@0 20 public static final String ABOUT_FIREFOX_URL = "about:firefox";
michael@0 21 public static final String ABOUT_DOWNLOADS_URL = "about:downloads";
michael@0 22 public static final String ABOUT_HOME_URL = "about:home";
michael@0 23 public static final String ABOUT_ADDONS_URL = "about:addons";
michael@0 24 public static final String ABOUT_APPS_URL = "about:apps";
michael@0 25
michael@0 26 // About pages' titles
michael@0 27 public static final String ABOUT_HOME_TITLE = "";
michael@0 28
michael@0 29 // Context Menu menu items
michael@0 30 public static final String[] CONTEXT_MENU_ITEMS_IN_PRIVATE_TAB = new String[] {
michael@0 31 "Open Link in Private Tab",
michael@0 32 "Copy Link",
michael@0 33 "Share Link",
michael@0 34 "Bookmark Link"
michael@0 35 };
michael@0 36
michael@0 37 public static final String[] CONTEXT_MENU_ITEMS_IN_NORMAL_TAB = new String[] {
michael@0 38 "Open Link in New Tab",
michael@0 39 "Open Link in Private Tab",
michael@0 40 "Copy Link",
michael@0 41 "Share Link",
michael@0 42 "Bookmark Link"
michael@0 43 };
michael@0 44
michael@0 45 public static final String[] BOOKMARK_CONTEXT_MENU_ITEMS = new String[] {
michael@0 46 "Open in New Tab",
michael@0 47 "Open in Private Tab",
michael@0 48 "Edit",
michael@0 49 "Remove",
michael@0 50 "Share",
michael@0 51 "Add to Home Screen"
michael@0 52 };
michael@0 53
michael@0 54 public static final String[] CONTEXT_MENU_ITEMS_IN_URL_BAR = new String[] {
michael@0 55 "Share",
michael@0 56 "Copy Address",
michael@0 57 "Edit Site Settings",
michael@0 58 "Add to Home Screen"
michael@0 59 };
michael@0 60
michael@0 61 public static final String TITLE_PLACE_HOLDER = "Enter Search or Address";
michael@0 62
michael@0 63 // Robocop page urls
michael@0 64 // Note: please use getAbsoluteUrl(String url) on each robocop url to get the correct url
michael@0 65 public static final String ROBOCOP_BIG_LINK_URL = "/robocop/robocop_big_link.html";
michael@0 66 public static final String ROBOCOP_BIG_MAILTO_URL = "/robocop/robocop_big_mailto.html";
michael@0 67 public static final String ROBOCOP_BLANK_PAGE_01_URL = "/robocop/robocop_blank_01.html";
michael@0 68 public static final String ROBOCOP_BLANK_PAGE_02_URL = "/robocop/robocop_blank_02.html";
michael@0 69 public static final String ROBOCOP_BLANK_PAGE_03_URL = "/robocop/robocop_blank_03.html";
michael@0 70 public static final String ROBOCOP_BOXES_URL = "/robocop/robocop_boxes.html";
michael@0 71 public static final String ROBOCOP_GEOLOCATION_URL = "/robocop/robocop_geolocation.html";
michael@0 72 public static final String ROBOCOP_LOGIN_URL = "/robocop/robocop_login.html";
michael@0 73 public static final String ROBOCOP_OFFLINE_STORAGE_URL = "/robocop/robocop_offline_storage.html";
michael@0 74 public static final String ROBOCOP_PICTURE_LINK_URL = "/robocop/robocop_picture_link.html";
michael@0 75 public static final String ROBOCOP_SEARCH_URL = "/robocop/robocop_search.html";
michael@0 76 public static final String ROBOCOP_TEXT_PAGE_URL = "/robocop/robocop_text_page.html";
michael@0 77 public static final String ROBOCOP_ADOBE_FLASH_URL = "/robocop/robocop_adobe_flash.html";
michael@0 78 public static final String ROBOCOP_INPUT_URL = "/robocop/robocop_input.html";
michael@0 79 public static final String ROBOCOP_JS_HARNESS_URL = "/robocop/robocop_javascript.html";
michael@0 80
michael@0 81 // Robocop page titles
michael@0 82 public static final String ROBOCOP_BIG_LINK_TITLE = "Big Link";
michael@0 83 public static final String ROBOCOP_BIG_MAILTO_TITLE = "Big Mailto";
michael@0 84 public static final String ROBOCOP_BLANK_PAGE_01_TITLE = "Browser Blank Page 01";
michael@0 85 public static final String ROBOCOP_BLANK_PAGE_02_TITLE = "Browser Blank Page 02";
michael@0 86 public static final String ROBOCOP_BLANK_PAGE_03_TITLE = "Browser Blank Page 03";
michael@0 87 public static final String ROBOCOP_BOXES_TITLE = "Browser Box test";
michael@0 88 public static final String ROBOCOP_GEOLOCATION_TITLE = "Geolocation Test Page";
michael@0 89 public static final String ROBOCOP_LOGIN_TITLE = "Robocop Login";
michael@0 90 public static final String ROBOCOP_OFFLINE_STORAGE_TITLE = "Robocop offline storage";
michael@0 91 public static final String ROBOCOP_PICTURE_LINK_TITLE = "Picture Link";
michael@0 92 public static final String ROBOCOP_SEARCH_TITLE = "Robocop Search Engine";
michael@0 93 public static final String ROBOCOP_TEXT_PAGE_TITLE = "Robocop Text Page";
michael@0 94 public static final String ROBOCOP_INPUT_TITLE = "Robocop Input";
michael@0 95
michael@0 96 // Settings menu strings
michael@0 97 // Section labels - ordered as found in the settings menu
michael@0 98 public static final String CUSTOMIZE_SECTION_LABEL = "Customize";
michael@0 99 public static final String DISPLAY_SECTION_LABEL = "Display";
michael@0 100 public static final String PRIVACY_SECTION_LABEL = "Privacy";
michael@0 101 public static final String MOZILLA_SECTION_LABEL = "Mozilla";
michael@0 102 public static final String DEVELOPER_TOOLS_SECTION_LABEL = "Developer tools";
michael@0 103
michael@0 104 // Option labels
michael@0 105 // Customize
michael@0 106 public static final String SYNC_LABEL = "Sync";
michael@0 107 public static final String SEARCH_SETTINGS_LABEL = "Search settings";
michael@0 108 public static final String IMPORT_FROM_ANDROID_LABEL = "Import from Android";
michael@0 109 public static final String TABS_LABEL = "Tabs";
michael@0 110
michael@0 111 // Display
michael@0 112 public static final String TEXT_SIZE_LABEL = "Text size";
michael@0 113 public static final String TITLE_BAR_LABEL = "Title bar";
michael@0 114 public static final String TEXT_REFLOW_LABEL = "Text reflow";
michael@0 115 public static final String CHARACTER_ENCODING_LABEL = "Character encoding";
michael@0 116 public static final String PLUGINS_LABEL = "Plugins";
michael@0 117
michael@0 118 // Title bar
michael@0 119 public static final String SHOW_PAGE_TITLE_LABEL = "Show page title";
michael@0 120 public static final String SHOW_PAGE_ADDRESS_LABEL = "Show page address";
michael@0 121
michael@0 122 // Privacy
michael@0 123 public static final String TRACKING_LABEL = "Tracking";
michael@0 124 public static final String COOKIES_LABEL = "Cookies";
michael@0 125 public static final String REMEMBER_PASSWORDS_LABEL = "Remember passwords";
michael@0 126 public static final String MASTER_PASWSWORD_LABEL = "Use master password";
michael@0 127 public static final String CLEAR_PRIVATE_DATA_LABEL = "Clear private data";
michael@0 128
michael@0 129 // Mozilla
michael@0 130 public static final String ABOUT_LABEL = "About (Fennec|Nightly|Aurora|Firefox Beta|Firefox)";
michael@0 131 public static final String FAQS_LABEL = "FAQs";
michael@0 132 public static final String FEEDBACK_LABEL = "Give feedback";
michael@0 133 public static final String PRODUCT_ANNOUNCEMENTS_LABEL = "Show product announcements";
michael@0 134 public static final String LOCATION_SERVICES_LABEL = "Mozilla location services";
michael@0 135 public static final String HELTH_REPORT_LABEL = "(Fennec|Nightly|Aurora|Firefox Beta|Firefox) Health Report";
michael@0 136 public static final String MY_HEALTH_REPORT_LABEL = "View my Health Report";
michael@0 137
michael@0 138 // Developer tools
michael@0 139 public static final String REMOTE_DEBUGGING_LABEL = "Remote debugging";
michael@0 140 public static final String LEARN_MORE_LABEL = "Learn more";
michael@0 141
michael@0 142 // Labels for the about:home tabs
michael@0 143 public static final String HISTORY_LABEL = "HISTORY";
michael@0 144 public static final String TOP_SITES_LABEL = "TOP SITES";
michael@0 145 public static final String BOOKMARKS_LABEL = "BOOKMARKS";
michael@0 146 public static final String READING_LIST_LABEL = "READING LIST";
michael@0 147 public static final String TODAY_LABEL = "Today";
michael@0 148 public static final String TABS_FROM_LAST_TIME_LABEL = "Open all tabs from last time";
michael@0 149
michael@0 150 // Desktop default bookmarks folders
michael@0 151 public static final String DESKTOP_FOLDER_LABEL = "Desktop Bookmarks";
michael@0 152 public static final String TOOLBAR_FOLDER_LABEL = "Bookmarks Toolbar";
michael@0 153 public static final String BOOKMARKS_MENU_FOLDER_LABEL = "Bookmarks Menu";
michael@0 154 public static final String UNSORTED_FOLDER_LABEL = "Unsorted Bookmarks";
michael@0 155
michael@0 156 // Menu items - some of the items are found only on android 2.3 and lower and some only on android 3.0+
michael@0 157 public static final String NEW_TAB_LABEL = "New Tab";
michael@0 158 public static final String NEW_PRIVATE_TAB_LABEL = "New Private Tab";
michael@0 159 public static final String SHARE_LABEL = "Share";
michael@0 160 public static final String FIND_IN_PAGE_LABEL = "Find in Page";
michael@0 161 public static final String DESKTOP_SITE_LABEL = "Request Desktop Site";
michael@0 162 public static final String PDF_LABEL = "Save as PDF";
michael@0 163 public static final String DOWNLOADS_LABEL = "Downloads";
michael@0 164 public static final String ADDONS_LABEL = "Add-ons";
michael@0 165 public static final String APPS_LABEL = "Apps";
michael@0 166 public static final String SETTINGS_LABEL = "Settings";
michael@0 167 public static final String GUEST_MODE_LABEL = "New Guest Session";
michael@0 168
michael@0 169 // Android 3.0+
michael@0 170 public static final String TOOLS_LABEL = "Tools";
michael@0 171 public static final String PAGE_LABEL = "Page";
michael@0 172
michael@0 173 // Android 2.3 and lower only
michael@0 174 public static final String MORE_LABEL = "More";
michael@0 175 public static final String RELOAD_LABEL = "Reload";
michael@0 176 public static final String FORWARD_LABEL = "Forward";
michael@0 177 public static final String BOOKMARK_LABEL = "Bookmark";
michael@0 178
michael@0 179 // Bookmark Toast Notification
michael@0 180 public static final String BOOKMARK_ADDED_LABEL = "Bookmark added";
michael@0 181 public static final String BOOKMARK_REMOVED_LABEL = "Bookmark removed";
michael@0 182 public static final String BOOKMARK_UPDATED_LABEL = "Bookmark updated";
michael@0 183 public static final String BOOKMARK_OPTIONS_LABEL = "Options";
michael@0 184 }

mercurial