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

Side by Side Diff: test/mjsunit/harmony/regexp-property-exact-match.js

Issue 1845243002: [regexp] extend \p syntax to binary and enumerated properties. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
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-regexp-property --harmony-unicode-regexps 5 // Flags: --harmony-regexp-property --harmony-unicode-regexps
6 6
7 assertThrows("/\\p{In CJK}/u"); 7 assertThrows("/\\p{In CJK}/u");
8 assertThrows("/\\p{InCJKUnifiedIdeographs}/u"); 8 assertThrows("/\\p{InCJKUnifiedIdeographs}/u");
9 assertDoesNotThrow("/\\p{InCJK}/u"); 9 assertThrows("/\\p{InCJK}/u");
10 assertDoesNotThrow("/\\p{InCJK_Unified_Ideographs}/u"); 10 assertThrows("/\\p{InCJK_Unified_Ideographs}/u");
11 11
12 assertDoesNotThrow("/\\p{InCyrillic_Sup}/u"); 12 assertThrows("/\\p{InCyrillic_Sup}/u");
13 assertDoesNotThrow("/\\p{InCyrillic_Supplement}/u"); 13 assertThrows("/\\p{InCyrillic_Supplement}/u");
14 assertDoesNotThrow("/\\p{InCyrillic_Supplementary}/u"); 14 assertThrows("/\\p{InCyrillic_Supplementary}/u");
Dan Ehrenberg 2016/04/07 22:13:25 For these tests which are changing from assertDoes
15 assertThrows("/\\p{InCyrillicSupplementary}/u"); 15 assertThrows("/\\p{InCyrillicSupplementary}/u");
16 assertThrows("/\\p{InCyrillic_supplementary}/u"); 16 assertThrows("/\\p{InCyrillic_supplementary}/u");
17 17
18 assertDoesNotThrow("/\\pC/u"); 18 assertDoesNotThrow("/\\pC/u");
19 assertDoesNotThrow("/\\p{Other}/u"); 19 assertDoesNotThrow("/\\p{Other}/u");
20 assertDoesNotThrow("/\\p{Cc}/u"); 20 assertDoesNotThrow("/\\p{Cc}/u");
21 assertDoesNotThrow("/\\p{Control}/u"); 21 assertDoesNotThrow("/\\p{Control}/u");
22 assertDoesNotThrow("/\\p{cntrl}/u"); 22 assertDoesNotThrow("/\\p{cntrl}/u");
23 assertDoesNotThrow("/\\p{M}/u"); 23 assertDoesNotThrow("/\\p{M}/u");
24 assertDoesNotThrow("/\\p{Mark}/u"); 24 assertDoesNotThrow("/\\p{Mark}/u");
25 assertDoesNotThrow("/\\p{Combining_Mark}/u"); 25 assertDoesNotThrow("/\\p{Combining_Mark}/u");
26 assertThrows("/\\p{Combining Mark}/u"); 26 assertThrows("/\\p{Combining Mark}/u");
27 27
28 assertDoesNotThrow("/\\p{Copt}/u"); 28 assertDoesNotThrow("/\\p{Script=Copt}/u");
29 assertDoesNotThrow("/\\p{Coptic}/u"); 29 assertThrows("/\\p{Coptic}/u");
30 assertDoesNotThrow("/\\p{Qaac}/u"); 30 assertThrows("/\\p{Qaac}/u");
31 assertDoesNotThrow("/\\p{Egyp}/u"); 31 assertThrows("/\\p{Egyp}/u");
32 assertDoesNotThrow("/\\p{Egyptian_Hieroglyphs}/u"); 32 assertDoesNotThrow("/\\p{Script=Egyptian_Hieroglyphs}/u");
33 assertThrows("/\\p{EgyptianHieroglyphs}/u"); 33 assertThrows("/\\p{EgyptianHieroglyphs}/u");
34
35 assertThrows("/\\p{BidiClass=LeftToRight}/u");
36 assertThrows("/\\p{BidiC=LeftToRight}/u");
37 assertThrows("/\\p{bidi_c=Left_To_Right}/u");
38
39 assertDoesNotThrow("/\\p{Block=CJK}/u");
40 assertThrows("/\\p{Block = CJK}/u");
41 assertThrows("/\\p{Block=cjk}/u");
42 assertThrows("/\\p{BLK=CJK}/u");
OLDNEW
« no previous file with comments | « test/mjsunit/harmony/regexp-property-enumerated.js ('k') | test/mjsunit/harmony/regexp-property-scripts.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698