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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/omnibox/OmniboxTest.java

Issue 1988553002: Android omnibox: Force paragraph direction to LTR. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Set alignment correctly, and URLs in SuggestionView match URL bar. Created 4 years, 7 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: chrome/android/javatests/src/org/chromium/chrome/browser/omnibox/OmniboxTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/omnibox/OmniboxTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/omnibox/OmniboxTest.java
index c57ff4041508c76aa29100cfbc29742633a80c0f..47d6e7d2b3e2c4db11b959e7975566919cede4cd 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/omnibox/OmniboxTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/omnibox/OmniboxTest.java
@@ -657,15 +657,6 @@ public class OmniboxTest extends ChromeActivityTestCaseBase<ChromeActivity> {
Map<String, List<SuggestionsResult>> suggestionsMap = buildSuggestionMap(
new TestSuggestionResultsBuilder()
- .setTextShownFor("ل")
- .addSuggestions(new SuggestionsResultBuilder()
- .addGeneratedSuggestion(OmniboxSuggestionType.SEARCH_HISTORY,
- "للك", null)
- .addGeneratedSuggestion(OmniboxSuggestionType.SEARCH_HISTORY,
- "www.test.com", null)
- .addGeneratedSuggestion(OmniboxSuggestionType.SEARCH_HISTORY,
- "للكتا", null)),
- new TestSuggestionResultsBuilder()
.setTextShownFor("للك")
.addSuggestions(new SuggestionsResultBuilder()
.addGeneratedSuggestion(OmniboxSuggestionType.SEARCH_HISTORY,
@@ -692,18 +683,11 @@ public class OmniboxTest extends ChromeActivityTestCaseBase<ChromeActivity> {
ThreadUtils.runOnUiThreadBlocking(new Runnable() {
@Override
public void run() {
- urlBarView.setText("ل");
- }
- });
- verifyOmniboxSuggestionAlignment(locationBar, 3, View.LAYOUT_DIRECTION_RTL);
-
- ThreadUtils.runOnUiThreadBlocking(new Runnable() {
- @Override
- public void run() {
urlBarView.setText("للك");
}
});
- verifyOmniboxSuggestionAlignment(locationBar, 1, View.LAYOUT_DIRECTION_RTL);
+ // Always LTR, even if both the entered text and the suggestions are RTL strings.
+ verifyOmniboxSuggestionAlignment(locationBar, 1, View.LAYOUT_DIRECTION_LTR);
ThreadUtils.runOnUiThreadBlocking(new Runnable() {
@Override

Powered by Google App Engine
This is Rietveld 408576698