// Copyright 2017 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: --regexp-mode-modifiers --harmony-regexp-property // These regexps are just grepped out of the other tests we already have // and the syntax changed from out-of-line i flag to inline i flag. assertFalse(/(?i)x(...)\1/.test("x\u03a3\u03c2\u03c3\u03c2\u03c3")); assertTrue(/(?i)\u03a3((?:))\1\1x/.test("\u03c2x"), "backref-UC16-empty"); assertTrue(/(?i)x(?:...|(...))\1x/.test("x\u03a3\u03c2\u03c3x")); assertTrue(/(?i)x(?:...|(...))\1x/.test("x\u03c2\u03c3\u039b\u03a3\u03c2\u03bbx")); assertFalse(/(?i)\xc1/.test('fooA'), "quickcheck-uc16-pattern-ascii-subject"); assertFalse(/(?i)x(...)\1/.test("xaaaaa"), "backref-ASCII-short"); assertTrue(/(?i)x((?:))\1\1x/.test("xx"), "backref-ASCII-empty"); assertTrue(/(?i)x(?:...|(...))\1x/.test("xabcx"), "backref-ASCII-uncaptured"); assertTrue(/(?i)x(?:...|(...))\1x/.test("xabcABCx"), "backref-ASCII-backtrack"); assertFalse(/(?i)f/.test('b')); assertFalse(/(?i)[abc]f/.test('x')); assertFalse(/(?i)[abc]f/.test('xa')); assertFalse(/(?i)[abc]