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

Unified Diff: test/mjsunit/harmony/unicode-regexp-backrefs.js

Issue 2096933002: Remove all harmony runtime flags which shipped in M51 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review comments Created 4 years, 6 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
Index: test/mjsunit/harmony/unicode-regexp-backrefs.js
diff --git a/test/mjsunit/harmony/unicode-regexp-backrefs.js b/test/mjsunit/harmony/unicode-regexp-backrefs.js
deleted file mode 100644
index e02301be1ebb010604e27d6d29d8dc1964ad868d..0000000000000000000000000000000000000000
--- a/test/mjsunit/harmony/unicode-regexp-backrefs.js
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright 2016 the V8 project authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Flags: --harmony-unicode-regexps --harmony-regexp-lookbehind
-
-// Back reference does not end in the middle of a surrogate pair.
-function replace(string) {
- return string.replace(/L/g, "\ud800")
- .replace(/l/g, "\ud801")
- .replace(/T/g, "\udc00")
- .replace(/\./g, "[^]");
-}
-
-function test(expectation, regexp_source, subject) {
- if (expectation !== null) expectation = expectation.map(replace);
- subject = replace(subject);
- regexp_source = replace(regexp_source);
- assertEquals(expectation, new RegExp(regexp_source, "u").exec(subject));
-}
-
-// Back reference does not end in the middle of a surrogate pair.
-test(null, "(L)\\1", "LLT");
-test(["LLTLl", "L", "l"], "(L).*\\1(.)", "LLTLl");
-test(null, "(aL).*\\1", "aLaLT");
-test(["aLaLTaLl", "aL", "l"], "(aL).*\\1(.)", "aLaLTaLl");
-
-var s = "TabcLxLTabcLxTabcLTyTabcLz";
-test([s, "TabcL", "z"], "([^x]+).*\\1(.)", s);
-
-// Back reference does not start in the middle of a surrogate pair.
-test(["TLTabTc", "T", "c"], "(T).*\\1(.)", "TLTabTc");
-
-// Lookbehinds.
-test(null, "(?<=\\1(T)x)", "LTTx");
-test(["", "b", "T"], "(?<=(.)\\2.*(T)x)", "bTaLTTx");
-test(null, "(?<=\\1.*(L)x)", "LTLx");
-test(["", "b", "L"], "(?<=(.)\\2.*(L)x)", "bLaLTLx");
-
-
-test(null, "([^x]+)x*\\1", "LxLT");
-test(null, "([^x]+)x*\\1", "TxLT");
-test(null, "([^x]+)x*\\1", "LTxL");
-test(null, "([^x]+)x*\\1", "LTxT");
-test(null, "([^x]+)x*\\1", "xLxLT");
-test(null, "([^x]+)x*\\1", "xTxLT");
-test(null, "([^x]+)x*\\1", "xLTxL");
-test(null, "([^x]+)x*\\1", "xLTxT");
-test(null, "([^x]+)x*\\1", "xxxLxxLTxx");
-test(null, "([^x]+)x*\\1", "xxxTxxLTxx");
-test(null, "([^x]+)x*\\1", "xxxLTxxLxx");
-test(null, "([^x]+)x*\\1", "xxxLTxxTxx");
-test(["LTTxxLTT", "LTT"], "([^x]+)x*\\1", "xxxLTTxxLTTxx");
« no previous file with comments | « test/mjsunit/harmony/unicode-escapes-in-regexps.js ('k') | test/mjsunit/harmony/unicode-regexp-ignore-case.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698