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

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

Issue 2803693006: [regexp] add more tests for binary property classes. (Closed)
Patch Set: fix 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 | « no previous file | 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-binary.js
diff --git a/test/mjsunit/harmony/regexp-property-binary.js b/test/mjsunit/harmony/regexp-property-binary.js
index c0b4426d5e34d093cfaf19228bbeca9c104773cd..f1c58f9ea6e93570a892ff40e85e42f2f1fa7400 100644
--- a/test/mjsunit/harmony/regexp-property-binary.js
+++ b/test/mjsunit/harmony/regexp-property-binary.js
@@ -17,6 +17,22 @@ t(/\p{Uppercase}+/u, "V");
f(/\p{Lower}+/u, "U");
t(/\p{Ideo}+/u, "字");
f(/\p{Ideo}+/u, "x");
+t(/\p{Noncharacter_Code_Point}+/u, "\uFDD0");
+t(/\p{Default_Ignorable_Code_Point}+/u, "\u00AD");
+t(/\p{ASCII}+/u, "a");
+f(/\p{ASCII}+/u, "äöü");
+t(/\p{ID_Start}+/u, "a");
+f(/\p{ID_Start}+/u, "1\\");
+t(/\p{ID_Continue}+/u, "1");
+f(/\p{ID_Continue}+/u, "%\\");
+t(/\p{Join_Control}+/u, "\u200c");
+f(/\p{Join_Control}+/u, "a1");
+t(/\p{Emoji_Presentation}+/u, "\u{1F308}");
+f(/\p{Emoji_Presentation}+/u, "x");
+t(/\p{Emoji_Modifier}+/u, "\u{1F3FE}");
+f(/\p{Emoji_Modifier}+/u, "x");
+t(/\p{Emoji_Modifier_Base}+/u, "\u{1F6CC}");
+f(/\p{Emoji_Modifier_Base}+/u, "x");
assertThrows("/\\p{Hiragana}/u");
assertThrows("/\\p{Bidi_Class}/u");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698