Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: mobile/android/tests/browser/robocop/StringHelper.java

Issue 29323468: Issue 2892 - Fix Robocop tests for Fennec 40 (Closed)
Patch Set: Created Aug. 12, 2015, 10:20 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* -*- Mode: Java; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: nil; -*- 1 /* -*- Mode: Java; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: nil; -*-
2 * This Source Code Form is subject to the terms of the Mozilla Public 2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 5
6 package org.mozilla.gecko.tests; 6 package org.mozilla.gecko.tests;
7 7
8 import android.content.res.Resources; 8 import android.content.res.Resources;
9 9
10 import org.mozilla.gecko.R; 10 import org.mozilla.gecko.R;
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 // Strings used as content description, e.g. for ImageButtons 233 // Strings used as content description, e.g. for ImageButtons
234 public final String CONTENT_DESCRIPTION_READER_MODE_BUTTON = "Enter Reader V iew"; 234 public final String CONTENT_DESCRIPTION_READER_MODE_BUTTON = "Enter Reader V iew";
235 235
236 private StringHelper(final Resources res) { 236 private StringHelper(final Resources res) {
237 237
238 OK = res.getString(R.string.button_ok); 238 OK = res.getString(R.string.button_ok);
239 239
240 // Note: DEFAULT_BOOKMARKS_TITLES.length == DEFAULT_BOOKMARKS_URLS.lengt h 240 // Note: DEFAULT_BOOKMARKS_TITLES.length == DEFAULT_BOOKMARKS_URLS.lengt h
241 DEFAULT_BOOKMARKS_TITLES = new String[] { 241 DEFAULT_BOOKMARKS_TITLES = new String[] {
242 res.getString(R.string.bookmarkdefaults_title_aboutfirefox), 242 res.getString(R.string.bookmarkdefaults_title_aboutfirefox),
243 res.getString(R.string.bookmarkdefaults_title_support), 243 res.getString(R.string.bookmarkdefaults_title_adblockplus),
244 res.getString(R.string.bookmarkdefaults_title_addons) 244 res.getString(R.string.bookmarkdefaults_title_acceptableads)
245 }; 245 };
246 DEFAULT_BOOKMARKS_URLS = new String[] { 246 DEFAULT_BOOKMARKS_URLS = new String[] {
247 res.getString(R.string.bookmarkdefaults_url_aboutfirefox), 247 res.getString(R.string.bookmarkdefaults_url_aboutfirefox),
248 res.getString(R.string.bookmarkdefaults_url_support), 248 res.getString(R.string.bookmarkdefaults_url_adblockplus),
249 res.getString(R.string.bookmarkdefaults_url_addons) 249 res.getString(R.string.bookmarkdefaults_url_acceptableads)
250 }; 250 };
251 DEFAULT_BOOKMARKS_COUNT = DEFAULT_BOOKMARKS_TITLES.length; 251 DEFAULT_BOOKMARKS_COUNT = DEFAULT_BOOKMARKS_TITLES.length;
252 252
253 // About pages 253 // About pages
254 ABOUT_FIREFOX_URL = res.getString(R.string.bookmarkdefaults_url_aboutfir efox); 254 ABOUT_FIREFOX_URL = res.getString(R.string.bookmarkdefaults_url_aboutfir efox);
255 255
256 // Context Menu item strings 256 // Context Menu item strings
257 CONTEXT_MENU_OPEN_IN_NEW_TAB = res.getString(R.string.contextmenu_open_n ew_tab); 257 CONTEXT_MENU_OPEN_IN_NEW_TAB = res.getString(R.string.contextmenu_open_n ew_tab);
258 CONTEXT_MENU_OPEN_IN_PRIVATE_TAB = res.getString(R.string.contextmenu_op en_private_tab); 258 CONTEXT_MENU_OPEN_IN_PRIVATE_TAB = res.getString(R.string.contextmenu_op en_private_tab);
259 CONTEXT_MENU_EDIT = res.getString(R.string.contextmenu_top_sites_edit); 259 CONTEXT_MENU_EDIT = res.getString(R.string.contextmenu_top_sites_edit);
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 * @param javascriptUrl to load. 416 * @param javascriptUrl to load.
417 * @return URL with harness wrapper. 417 * @return URL with harness wrapper.
418 */ 418 */
419 public String getHarnessUrlForJavascript(String javascriptUrl) { 419 public String getHarnessUrlForJavascript(String javascriptUrl) {
420 // We include a slug to make sure we never cache the harness. 420 // We include a slug to make sure we never cache the harness.
421 return ROBOCOP_JS_HARNESS_URL + 421 return ROBOCOP_JS_HARNESS_URL +
422 "?slug=" + System.currentTimeMillis() + 422 "?slug=" + System.currentTimeMillis() +
423 "&path=" + javascriptUrl; 423 "&path=" + javascriptUrl;
424 } 424 }
425 } 425 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld