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

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

Issue 2096933002: Remove all harmony runtime flags which shipped in M51 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review comments Created 4 years, 5 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
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
6
7 // Non-unicode use toUpperCase mappings. 5 // Non-unicode use toUpperCase mappings.
8 assertFalse(/[\u00e5]/i.test("\u212b")); 6 assertFalse(/[\u00e5]/i.test("\u212b"));
9 assertFalse(/[\u212b]/i.test("\u00e5\u1234")); 7 assertFalse(/[\u212b]/i.test("\u00e5\u1234"));
10 assertFalse(/[\u212b]/i.test("\u00e5")); 8 assertFalse(/[\u212b]/i.test("\u00e5"));
11 9
12 assertTrue("\u212b".toLowerCase() == "\u00e5"); 10 assertTrue("\u212b".toLowerCase() == "\u00e5");
13 assertTrue("\u00c5".toLowerCase() == "\u00e5"); 11 assertTrue("\u00c5".toLowerCase() == "\u00e5");
14 assertTrue("\u00e5".toUpperCase() == "\u00c5"); 12 assertTrue("\u00e5".toUpperCase() == "\u00c5");
15 13
16 // Unicode uses case folding mappings. 14 // Unicode uses case folding mappings.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // Back references. 48 // Back references.
51 assertNull(/(.)\1\1/ui.exec("\u00e5\u212b\u00c5")); 49 assertNull(/(.)\1\1/ui.exec("\u00e5\u212b\u00c5"));
52 assertNull(/(.)\1/ui.exec("\u{118aa}\u{118ca}")); 50 assertNull(/(.)\1/ui.exec("\u{118aa}\u{118ca}"));
53 51
54 52
55 // Non-Latin1 maps to Latin1. 53 // Non-Latin1 maps to Latin1.
56 assertNull(/^\u017F/ui.exec("s")); 54 assertNull(/^\u017F/ui.exec("s"));
57 assertNull(/^\u017F/ui.exec("s\u1234")); 55 assertNull(/^\u017F/ui.exec("s\u1234"));
58 assertNull(/^a[\u017F]/ui.exec("as")); 56 assertNull(/^a[\u017F]/ui.exec("as"));
59 assertNull(/^a[\u017F]/ui.exec("as\u1234")); 57 assertNull(/^a[\u017F]/ui.exec("as\u1234"));
OLDNEW
« no previous file with comments | « test/mjsunit/es6/unicode-regexp-ignore-case.js ('k') | test/mjsunit/es6/unicode-regexp-last-index.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698