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

Side by Side Diff: test/mjsunit/harmony/unicode-regexp-ignore-case-noi18n.js

Issue 1661483002: Revert of [regexp] implement /ui to mirror the implementation for /i. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: add cause of revert as test case Created 4 years, 10 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
« no previous file with comments | « test/mjsunit/harmony/unicode-regexp-ignore-case.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Flags: --harmony-unicode-regexps 5 // Flags: --harmony-unicode-regexps
6 6
7 // Non-unicode use toUpperCase mappings. 7 // Non-unicode use toUpperCase mappings.
8 assertFalse(/[\u00e5]/i.test("\u212b")); 8 assertFalse(/[\u00e5]/i.test("\u212b"));
9 assertFalse(/[\u212b]/i.test("\u00e5\u1234")); 9 assertFalse(/[\u212b]/i.test("\u00e5\u1234"));
10 assertFalse(/[\u212b]/i.test("\u00e5")); 10 assertFalse(/[\u212b]/i.test("\u00e5"));
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // Simple mappings. 44 // Simple mappings.
45 assertFalse(/\u1f8d/ui.test("\u1f85")); 45 assertFalse(/\u1f8d/ui.test("\u1f85"));
46 46
47 // Common mappings. 47 // Common mappings.
48 assertTrue(/\u1f6b/ui.test("\u1f63")); 48 assertTrue(/\u1f6b/ui.test("\u1f63"));
49 49
50 // Back references. 50 // Back references.
51 assertNull(/(.)\1\1/ui.exec("\u00e5\u212b\u00c5")); 51 assertNull(/(.)\1\1/ui.exec("\u00e5\u212b\u00c5"));
52 assertNull(/(.)\1/ui.exec("\u{118aa}\u{118ca}")); 52 assertNull(/(.)\1/ui.exec("\u{118aa}\u{118ca}"));
53
54
55 // Non-Latin1 maps to Latin1.
56 assertNull(/^\u017F/ui.exec("s"));
57 assertNull(/^\u017F/ui.exec("s\u1234"));
58 assertNull(/^a[\u017F]/ui.exec("as"));
59 assertNull(/^a[\u017F]/ui.exec("as\u1234"));
OLDNEW
« no previous file with comments | « test/mjsunit/harmony/unicode-regexp-ignore-case.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698