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