summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsungmann.cho@navercorp.com <sungmann.cho@navercorp.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-18 14:19:04 +0000
committersungmann.cho@navercorp.com <sungmann.cho@navercorp.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-18 14:19:04 +0000
commit2d411e596bff52a720c21e3e752af79f15969ea1 (patch)
treeea393af2862769d4f9539c339b6d851016349950
parent3748811b2eb9587c84afe187f91a6994b69a94b6 (diff)
downloadchromium_src-2d411e596bff52a720c21e3e752af79f15969ea1.zip
chromium_src-2d411e596bff52a720c21e3e752af79f15969ea1.tar.gz
chromium_src-2d411e596bff52a720c21e3e752af79f15969ea1.tar.bz2
Fix lint issues with AndroidScrollIntegrationTest.java.
Currently, the lint warns against using the implicit default locale in String.format(). We should use the explicit locale instead of it. BUG=327768 Review URL: https://codereview.chromium.org/287323002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271295 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--android_webview/javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.java b/android_webview/javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.java
index 9c522a5..5640ea1 100644
--- a/android_webview/javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.java
+++ b/android_webview/javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.java
@@ -19,6 +19,7 @@ import org.chromium.content.browser.test.util.CallbackHelper;
import org.chromium.content_public.browser.GestureStateListener;
import org.chromium.ui.gfx.DeviceDisplayInfo;
+import java.util.Locale;
import java.util.concurrent.Callable;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.atomic.AtomicBoolean;
@@ -830,9 +831,11 @@ public class AndroidScrollIntegrationTest extends AwTestBase {
int newContentHeightApproximation =
(int) Math.ceil(awContents.computeVerticalScrollRange() / newScale);
- assertTrue(String.format("Scale range should increase after zoom (%f) > (%f)",
+ assertTrue(String.format(Locale.ENGLISH,
+ "Scale range should increase after zoom (%f) > (%f)",
newScale, oldScale), newScale > oldScale);
- assertTrue(String.format("Scroll range should increase after zoom (%d) > (%d)",
+ assertTrue(String.format(Locale.ENGLISH,
+ "Scroll range should increase after zoom (%d) > (%d)",
newScrollRange, oldScrollRange), newScrollRange > oldScrollRange);
assertEquals(awContents.getContentHeightCss(), oldContentHeightApproximation);
assertEquals(awContents.getContentHeightCss(), newContentHeightApproximation);