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

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

Issue 2502933002: [regexp] implement latest spec draft for property class. (Closed)
Patch Set: fix test Created 4 years, 1 month 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
Index: test/mjsunit/harmony/regexp-property-general-category.js
diff --git a/test/mjsunit/harmony/regexp-property-general-category.js b/test/mjsunit/harmony/regexp-property-general-category.js
index e4fb8b5232de868c67d27945a0b8e7a60c857a0d..3d514b03fec1d960490feb84d91e6d1cf9d58d28 100644
--- a/test/mjsunit/harmony/regexp-property-general-category.js
+++ b/test/mjsunit/harmony/regexp-property-general-category.js
@@ -63,3 +63,7 @@ assertTrue(/\P{L}/u.test("\uA6EE"));
assertTrue(/\p{Lowercase_Letter}/u.test("a"));
assertTrue(/\p{Math_Symbol}/u.test("+"));
+
+assertTrue(/\p{gc=Ll}/u.test("a"));
+assertTrue(/\p{General_Category=Math_Symbol}/u.test("+"));
+assertTrue(/\p{General_Category=L}/u.test("X"));

Powered by Google App Engine
This is Rietveld 408576698