Index: chrome/android/javatests/src/org/chromium/chrome/browser/NavigateTest.java |
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/NavigateTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/NavigateTest.java |
index 8330308e65138062719e56faac10dddce092e898..5ca8f3274fa03e88e4f2261762d2bfb1f866c5bc 100644 |
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/NavigateTest.java |
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/NavigateTest.java |
@@ -35,6 +35,7 @@ import org.chromium.content.browser.test.util.UiUtils; |
import org.chromium.net.test.util.TestWebServer; |
import java.net.URLEncoder; |
+import java.util.Locale; |
import java.util.concurrent.Callable; |
import java.util.concurrent.ExecutionException; |
import java.util.concurrent.Semaphore; |
@@ -324,25 +325,25 @@ public class NavigateTest extends ChromeTabbedActivityTestBase { |
for (int i = 0; i < repeats; i++) { |
singleClickView(getActivity().findViewById(R.id.back_button)); |
UiUtils.settleDownUI(getInstrumentation()); |
- assertEquals(String.format( |
+ assertEquals(String.format(Locale.US, |
"URL mismatch after pressing back button for the 1st time in repetition %d.", |
i), urls[1], getActivity().getActivityTab().getUrl()); |
singleClickView(getActivity().findViewById(R.id.back_button)); |
UiUtils.settleDownUI(getInstrumentation()); |
- assertEquals(String.format( |
+ assertEquals(String.format(Locale.US, |
"URL mismatch after pressing back button for the 2nd time in repetition %d.", |
i), urls[0], getActivity().getActivityTab().getUrl()); |
singleClickView(getActivity().findViewById(R.id.forward_button)); |
UiUtils.settleDownUI(getInstrumentation()); |
- assertEquals(String.format( |
+ assertEquals(String.format(Locale.US, |
"URL mismatch after pressing fwd button for the 1st time in repetition %d.", i), |
urls[1], getActivity().getActivityTab().getUrl()); |
singleClickView(getActivity().findViewById(R.id.forward_button)); |
UiUtils.settleDownUI(getInstrumentation()); |
- assertEquals(String.format( |
+ assertEquals(String.format(Locale.US, |
"URL mismatch after pressing fwd button for the 2nd time in repetition %d.", i), |
urls[2], getActivity().getActivityTab().getUrl()); |
} |