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

Unified Diff: test/mjsunit/harmony/unicode-escapes-in-regexps.js

Issue 1618753002: Revert of [regexp] implement character classes for unicode regexps. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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 | « test/mjsunit/harmony/unicode-character-ranges.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/unicode-escapes-in-regexps.js
diff --git a/test/mjsunit/harmony/unicode-escapes-in-regexps.js b/test/mjsunit/harmony/unicode-escapes-in-regexps.js
index 10187412aa9ca2a3c8e2ae26a2a1b20ab29e10c8..f591dac930194037ac2f498bddc33c4f2a5ca92c 100644
--- a/test/mjsunit/harmony/unicode-escapes-in-regexps.js
+++ b/test/mjsunit/harmony/unicode-escapes-in-regexps.js
@@ -252,30 +252,6 @@
assertTrue(new RegExp("\u{12345}{3}", "u").test("\u{12345}\u{12345}\u{12345}"));
assertTrue(/\u{12345}{3}/u.test("\u{12345}\u{12345}\u{12345}"));
assertTrue(new RegExp("\u{12345}{3}").test("\u{12345}\udf45\udf45"));
-assertFalse(/\ud808\udf45{3}/u.test("\u{12345}\udf45\udf45"));
-assertTrue(/\ud808\udf45{3}/u.test("\u{12345}\u{12345}\u{12345}"));
+assertTrue(/\ud808\udf45{3}/u.test("\u{12345}\udf45\udf45"));
assertFalse(new RegExp("\u{12345}{3}", "u").test("\u{12345}\udf45\udf45"));
assertFalse(/\u{12345}{3}/u.test("\u{12345}\udf45\udf45"));
-
-// Mixed escapes and literal surrogates.
-assertEquals(["\u{10000}\u{10000}"],
- new RegExp("\ud800\udc00+", "u").exec("\u{10000}\u{10000}"));
-assertEquals(["\u{10000}\u{10000}"],
- new RegExp("\\ud800\\udc00+", "u").exec("\u{10000}\u{10000}"));
-assertEquals(["\u{10000}\u{10000}"],
- new RegExp("\\ud800\udc00+", "u").exec("\u{10000}\u{10000}"));
-assertEquals(["\u{10000}\u{10000}"],
- new RegExp("\ud800\\udc00+", "u").exec("\u{10000}\u{10000}"));
-
-assertEquals(["\u{10003}\u{50001}"],
- new RegExp("[\\ud800\\udc03-\\ud900\\udc01\]+", "u").exec(
- "\u{10003}\u{50001}"));
-assertEquals(["\u{10003}\u{50001}"],
- new RegExp("[\\ud800\udc03-\ud900\\udc01\]+", "u").exec(
- "\u{10003}\u{50001}"));
-assertEquals(["\u{50001}"],
- new RegExp("[\\ud800\udc03-\ud900\\udc01\]+", "u").exec(
- "\u{10002}\u{50001}"));
-assertEquals(["\u{10003}\u{50001}"],
- new RegExp("[\ud800\udc03-\u{50001}\]+", "u").exec(
- "\u{10003}\u{50001}"));
« no previous file with comments | « test/mjsunit/harmony/unicode-character-ranges.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698