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

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

Issue 1544023002: Call out to ICU for case conversion Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Additional test case Created 4 years, 12 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 // Reallocate and try again in callout to ICU
26 assertEquals("CSSBẶ", "c\u00DFbặ".toUpperCase());
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698