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

Unified Diff: components/url_formatter/url_formatter_unittest.cc

Issue 2871643005: Disallow mixing of Canadian Syllabary and [a-z] (Closed)
Patch Set: fix unittests Created 3 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
« no previous file with comments | « components/url_formatter/url_formatter.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/url_formatter/url_formatter_unittest.cc
diff --git a/components/url_formatter/url_formatter_unittest.cc b/components/url_formatter/url_formatter_unittest.cc
index a59b4b6b4d668585ce36df1064df0b2e0e118e92..5b853996043741c47dcb5c87e684f91ba0bdf098 100644
--- a/components/url_formatter/url_formatter_unittest.cc
+++ b/components/url_formatter/url_formatter_unittest.cc
@@ -125,7 +125,8 @@ const IDNTestCase idn_cases[] = {
// ASCII-Latin + Japn (Kana + Han)
// ASCII-Latin + Kore (Hangul + Han)
// ASCII-Latin + Han + Bopomofo
- // ASCII-Latin + any allowed script other than Cyrillic, Greek and Cherokee
+ // ASCII-Latin + any allowed script other than Cyrillic, Greek, Cherokee
+ // and Unified Canadian Syllabary
// "payp<alpha>l.com"
{"www.xn--paypl-g9d.com", L"payp\x03b1l.com", false},
// google.gr with Greek omicron and epsilon
@@ -179,6 +180,11 @@ const IDNTestCase idn_cases[] = {
{"xn--t2bes3ds6749n.com", L"\x0930\x094b\x0932\x0947\x76e7\x0938.com", false},
// Devanagari + Bengali
{"xn--11b0x.in", L"\x0915\x0995.in", false},
+ // Canadian Syllabary + Latin
+ {"xn--ab-lym.com", L"ab\x14BF.com", false},
+ {"xn--ab1-p6q.com", L"ab1\x14BF.com", false},
+ {"xn--1ab-m6qd.com", L"\x14BF" L"1ab.com", false},
+ {"xn--ab-jymc.com", L"\x14BF" L"ab.com", false},
// Invisibility check
// Thai tone mark malek(U+0E48) repeated
« no previous file with comments | « components/url_formatter/url_formatter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698