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

Unified Diff: test/mjsunit/harmony/regexp-property-special.js

Issue 2809143003: [regexp] remove \p{Other_ID_Start} and \p{Other_ID_Continue} (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/regexp/regexp-parser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/regexp-property-special.js
diff --git a/test/mjsunit/harmony/regexp-property-special.js b/test/mjsunit/harmony/regexp-property-special.js
index c36ff51c5b59a98d8a5bd6233e6f9a271eb0c2c5..58a7f6b6c3e018a4fa47f3c6539bd29def4a9330 100644
--- a/test/mjsunit/harmony/regexp-property-special.js
+++ b/test/mjsunit/harmony/regexp-property-special.js
@@ -44,16 +44,30 @@ t(/\P{Assigned}+/u, "\ufdd0");
t(/\P{Assigned}+/u, "\u{fffff}");
f(/\P{Assigned}/u, "");
+t(/[^\P{Assigned}]+/u, "123");
+f(/[\P{Assigned}]+/u, "🄰🄱🄲");
+f(/[^\P{Assigned}]+/u, "\ufdd0");
+t(/[\P{Assigned}]+/u, "\u{fffff}");
+f(/[\P{Assigned}]/u, "");
+
f(/[^\u1234\p{ASCII}]+/u, "\u1234");
t(/[x\P{ASCII}]+/u, "x");
t(/[\u1234\p{ASCII}]+/u, "\u1234");
-t(/^\p{Other_ID_Start}+$/u, "\u1885\u1886\u2118\u212e\u309b\u309c");
-f(/\P{OIDS}/u, "\u1885\u1886\u2118\u212e\u309b\u309c");
-f(/^[x\P{Other_ID_Start}]+$/u, "\u1885\u1886\u2118\u212e\u309b\u309cx");
-f(/[x\P{OIDS}]/u, "\u1885\u1886\u2118\u212e\u309b\u309c");
-
-var other_id_continue = "\u00b7\u0387\u1369\u136a\u136b\u136c" +
- "\u136d\u136e\u136f\u1370\u1371\u19da";
-t(/^\p{Other_ID_Continue}+$/u, other_id_continue);
-f(/\P{OIDC}/u, other_id_continue);
+// Contributory binary properties are not supported.
+assertThrows("/\\p{Other_Alphabetic}/u");
+assertThrows("/\\P{OAlpha}/u");
+assertThrows("/\\p{Other_Default_Ignorable_Code_Point}/u");
+assertThrows("/\\P{ODI}/u");
+assertThrows("/\\p{Other_Grapheme_Extend}/u");
+assertThrows("/\\P{OGr_Ext}/u");
+assertThrows("/\\p{Other_ID_Continue}/u");
+assertThrows("/\\P{OIDC}/u");
+assertThrows("/\\p{Other_ID_Start}/u");
+assertThrows("/\\P{OIDS}/u");
+assertThrows("/\\p{Other_Lowercase}/u");
+assertThrows("/\\P{OLower}/u");
+assertThrows("/\\p{Other_Math}/u");
+assertThrows("/\\P{OMath}/u");
+assertThrows("/\\p{Other_Uppercase}/u");
+assertThrows("/\\P{OUpper}/u");
« no previous file with comments | « src/regexp/regexp-parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698