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

Side by Side Diff: test/intl/general/case-mapping.js

Issue 1812673005: Use ICU case conversion/transliterator for case conversion behind a flag (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: remove goto; GetFlatContent still crashes Created 4 years, 8 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Some edge cases that unibrow got wrong
6
7 assertEquals("𐐘", "𐑀".toUpperCase());
8 assertEquals("𐑀", "𐐘".toLowerCase());
9 assertEquals("σ", "Σ".toLowerCase());
10
11
12 // Some different paths in the ICU case conversion fastpath
13
14 assertEquals("σς", "\u03A3\u03A3".toLowerCase());
15 // Expand sharp s in latin1 fastpath
16 assertEquals("ASSB", "A\u00DFB".toUpperCase());
17 assertEquals("AB", "Ab".toUpperCase());
18 // Find first upper case in fastpath
19 assertEquals("ab", "aB".toLowerCase());
20 assertEquals("AÜ", "aü".toUpperCase());
21 assertEquals("AÜ", "AÜ".toUpperCase());
22 assertEquals("aü", "aü".toLowerCase());
23 assertEquals("aü", "AÜ".toLowerCase());
24 assertEquals("aü", "AÜ".toLowerCase());
25 // Buffer size increase
26 assertEquals("CSSBẶ", "c\u00DFbặ".toUpperCase());
27 assertEquals("FIFLFFIFFL", "\uFB01\uFB02\uFB03\uFB04".toUpperCase());
28 // Plane 1; Deseret and Warang Citi Script.
29 assertEquals("\u{10400}\u{118A0}", "\u{10428}\u{118C0}".toUpperCase());
30 assertEquals("\u{10428}\u{118C0}", "\u{10400}\u{118A0}".toLowerCase());
31 // Mathematical Bold {Capital, Small} Letter A do not change.
32 assertEquals("\u{1D400}\u{1D41A}", "\u{1D400}\u{1D41A}".toUpperCase());
33 assertEquals("\u{1D400}\u{1D41A}", "\u{1D400}\u{1D41A}".toLowerCase());
34 // Plane 1; New characters in Unicode 8.0
35 //assertEquals("\u{10C80}", "\u{10CC0}".toUpperCase());
36 //assertEquals("\u{10CC0}", "\u{10C80}".toLowerCase());
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698