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

Unified Diff: chrome/browser/android/vr_shell/textures/url_bar_texture_unittest.cc

Issue 2925053004: [vr] Exit to 2D when encountering URLs with strong RTL characters (Closed)
Patch Set: rebaes Created 3 years, 6 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/browser/android/vr_shell/textures/url_bar_texture_unittest.cc
diff --git a/chrome/browser/android/vr_shell/textures/url_bar_texture_unittest.cc b/chrome/browser/android/vr_shell/textures/url_bar_texture_unittest.cc
index 80d73a23f7c42de68a995e30e8acc6d3e67bb5d8..f6e2cc5c4e0d67f8c2c1e82a65297e0322c788f7 100644
--- a/chrome/browser/android/vr_shell/textures/url_bar_texture_unittest.cc
+++ b/chrome/browser/android/vr_shell/textures/url_bar_texture_unittest.cc
@@ -179,6 +179,13 @@ TEST(UrlBarTextureTest, WillFailOnUnhandledCodePoint) {
EXPECT_EQ(UiUnsupportedMode::kCount, texture.unsupported_mode());
}
+TEST(UrlBarTextureTest, WillFailOnStrongRTLChar) {
+ TestUrlBarTexture texture;
+ texture.DrawURL(GURL("https://ש.com"));
+ EXPECT_EQ(UiUnsupportedMode::kURLWithStrongRTLChars,
+ texture.unsupported_mode());
+}
+
TEST(UrlBarTexture, ElisionIsAnUnsupportedMode) {
TestUrlBarTexture texture;
texture.DrawURL(GURL(
« no previous file with comments | « chrome/browser/android/vr_shell/textures/url_bar_texture.cc ('k') | chrome/browser/android/vr_shell/ui_unsupported_mode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698