Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Unified Diff: android_webview/javatests/src/org/chromium/android_webview/test/UserAgentTest.java

Issue 663573002: Fix Java indentation issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: android_webview/javatests/src/org/chromium/android_webview/test/UserAgentTest.java
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/UserAgentTest.java b/android_webview/javatests/src/org/chromium/android_webview/test/UserAgentTest.java
index 0e6d363d54b956fa370beeccd575f4f9324fb9e7..da84d765347cb6989988de14b810375a6e6132e5 100644
--- a/android_webview/javatests/src/org/chromium/android_webview/test/UserAgentTest.java
+++ b/android_webview/javatests/src/org/chromium/android_webview/test/UserAgentTest.java
@@ -33,13 +33,13 @@ public class UserAgentTest extends AwTestBase {
public void testNoExtraSpaceBeforeBuildName() throws Throwable {
getAwSettingsOnUiThread(mAwContents).setJavaScriptEnabled(true);
loadDataSync(
- mAwContents,
- mContentsClient.getOnPageFinishedHelper(),
- // Spaces are replaced with underscores to avoid consecutive spaces compression.
- "<html>" +
- "<body onload='document.title=navigator.userAgent.replace(/ /g, \"_\")'></body>" +
- "</html>",
- "text/html", false);
+ mAwContents,
+ mContentsClient.getOnPageFinishedHelper(),
+ // Spaces are replaced with underscores to avoid consecutive spaces compression.
+ "<html>" +
+ "<body onload='document.title=navigator.userAgent.replace(/ /g, \"_\")'></body>" +
+ "</html>",
+ "text/html", false);
final String ua = getTitleOnUiThread(mAwContents);
Matcher matcher = Pattern.compile("Android_[^;]+;_[^_]").matcher(ua);
assertTrue(matcher.find());

Powered by Google App Engine
This is Rietveld 408576698