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

Unified Diff: test/mjsunit/harmony/unicode-regexp-last-index.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-last-index.js
diff --git a/test/mjsunit/harmony/unicode-regexp-last-index.js b/test/mjsunit/harmony/unicode-regexp-last-index.js
deleted file mode 100644
index 4a075d4380d59f1fcbee5ac89150a0cb0099491f..0000000000000000000000000000000000000000
--- a/test/mjsunit/harmony/unicode-regexp-last-index.js
+++ /dev/null
@@ -1,104 +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
-
-var r = /./ug;
-assertEquals(["\ud800\udc00"], r.exec("\ud800\udc00\ud801\udc01"));
-assertEquals(2, r.lastIndex);
-r.lastIndex = 1;
-assertEquals(["\ud800\udc00"], r.exec("\ud800\udc00\ud801\udc01"));
-assertEquals(2, r.lastIndex);
-assertEquals(["\ud801\udc01"], r.exec("\ud800\udc00\ud801\udc01"));
-r.lastIndex = 3;
-assertEquals(["\ud801\udc01"], r.exec("\ud800\udc00\ud801\udc01"));
-assertEquals(4, r.lastIndex);
-r.lastIndex = 4;
-assertNull(r.exec("\ud800\udc00\ud801\udc01"));
-assertEquals(0, r.lastIndex);
-r.lastIndex = 5;
-assertNull(r.exec("\ud800\udc00\ud801\udc01"));
-assertEquals(0, r.lastIndex);
-
-r.lastIndex = 3;
-assertEquals(["\ud802"], r.exec("\ud800\udc00\ud801\ud802"));
-r.lastIndex = 4;
-assertNull(r.exec("\ud800\udc00\ud801\ud802"));
-
-r = /./g;
-assertEquals(["\ud800"], r.exec("\ud800\udc00\ud801\udc01"));
-assertEquals(1, r.lastIndex);
-assertEquals(["\udc00"], r.exec("\ud800\udc00\ud801\udc01"));
-assertEquals(2, r.lastIndex);
-assertEquals(["\ud801"], r.exec("\ud800\udc00\ud801\udc01"));
-assertEquals(3, r.lastIndex);
-assertEquals(["\udc01"], r.exec("\ud800\udc00\ud801\udc01"));
-assertEquals(4, r.lastIndex);
-assertNull(r.exec("\ud800\udc00\ud801\udc01"));
-assertEquals(0, r.lastIndex);
-r.lastIndex = 1;
-assertEquals(["\udc00"], r.exec("\ud800\udc00\ud801\udc01"));
-assertEquals(2, r.lastIndex);
-
-// ------------------------
-
-r = /^./ug;
-assertEquals(["\ud800\udc00"], r.exec("\ud800\udc00\ud801\udc01"));
-assertEquals(2, r.lastIndex);
-r.lastIndex = 1;
-assertEquals(["\ud800\udc00"], r.exec("\ud800\udc00\ud801\udc01"));
-assertEquals(2, r.lastIndex);
-assertNull(r.exec("\ud800\udc00\ud801\udc01"));
-assertEquals(0, r.lastIndex);
-r.lastIndex = 3;
-assertNull(r.exec("\ud800\udc00\ud801\udc01"));
-assertEquals(0, r.lastIndex);
-r.lastIndex = 4;
-assertNull(r.exec("\ud800\udc00\ud801\udc01"));
-assertEquals(0, r.lastIndex);
-r.lastIndex = 5;
-assertNull(r.exec("\ud800\udc00\ud801\udc01"));
-assertEquals(0, r.lastIndex);
-
-r = /^./g;
-assertEquals(["\ud800"], r.exec("\ud800\udc00\ud801\udc01"));
-assertEquals(1, r.lastIndex);
-assertNull(r.exec("\ud800\udc00\ud801\udc01"));
-assertEquals(0, r.lastIndex);
-r.lastIndex = 3;
-assertNull(r.exec("\ud800\udc00\ud801\udc01"));
-assertEquals(0, r.lastIndex);
-
-//------------------------
-
-r = /(?:(^.)|.)/ug;
-assertEquals(["\ud800\udc00", "\ud800\udc00"],
- r.exec("\ud800\udc00\ud801\udc01"));
-assertEquals(2, r.lastIndex);
-r.lastIndex = 1;
-assertEquals(["\ud800\udc00", "\ud800\udc00"],
- r.exec("\ud800\udc00\ud801\udc01"));
-assertEquals(2, r.lastIndex);
-assertEquals(["\ud801\udc01", undefined], r.exec("\ud800\udc00\ud801\udc01"));
-r.lastIndex = 3;
-assertEquals(["\ud801\udc01", undefined], r.exec("\ud800\udc00\ud801\udc01"));
-r.lastIndex = 4;
-assertNull(r.exec("\ud800\udc00\ud801\udc01"));
-r.lastIndex = 5;
-assertNull(r.exec("\ud800\udc00\ud801\udc01"));
-
-r.lastIndex = 3;
-assertEquals(["\ud802", undefined], r.exec("\ud800\udc00\ud801\ud802"));
-r.lastIndex = 4;
-assertNull(r.exec("\ud800\udc00\ud801\ud802"));
-
-r = /(?:(^.)|.)/g;
-assertEquals(["\ud800", "\ud800"],
- r.exec("\ud800\udc00\ud801\udc01"));
-assertEquals(1, r.lastIndex);
-assertEquals(["\udc00", undefined], r.exec("\ud800\udc00\ud801\udc01"));
-assertEquals(2, r.lastIndex);
-r.lastIndex = 3;
-assertEquals(["\udc01", undefined], r.exec("\ud800\udc00\ud801\udc01"));
-assertEquals(4, r.lastIndex);
« no previous file with comments | « test/mjsunit/harmony/unicode-regexp-ignore-case-noi18n.js ('k') | test/mjsunit/harmony/unicode-regexp-restricted-syntax.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698