v8/test/intl/regress-8348.js
Frank Tang bb24140cb3 [Intl] Cutting 43K by removing Unibrow when ICU available
Making 43K of room for landing ICU64.

Size Change (on x64.release)
D8 before 23,683,192
D8 after 23,639,296
Reduce 43,896 bytes

Bugs: v8:8348

Change-Id: I057f7d59e955a2e5e017873e5b3b5daf5b142ae2
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1478710
Commit-Queue: Frank Tang <ftang@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#60616}
2019-04-03 17:58:51 +00:00

20 lines
650 B
JavaScript

// Copyright 2019 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.
function testRegExpI(text, msg) {
assertTrue(new RegExp(text, 'i').test(text.toUpperCase()), msg + ': ' + text);
}
testRegExpI('abc', 'ASCII');
testRegExpI('ABC', 'ASCII');
testRegExpI('rst', 'ASCII');
testRegExpI('RST', 'ASCII');
testRegExpI('αβψδεφ', 'Greek');
testRegExpI('\u1c80\u1c81', 'Historic Cyrillic added in Unicode 9');
testRegExpI('\u026A', 'Dotless I, uppercase form added in Unicode 9');
testRegExpI('ოქტ', 'Georgian Mtavruli added in Unicode 11');