f0633200bd
Bug: v8:7871 Cq-Include-Trybots: luci.v8.try:v8_linux_noi18n_rel_ng Change-Id: Icabd067f4074169230f21a574aedecf30c5049e4 Reviewed-on: https://chromium-review.googlesource.com/1195077 Commit-Queue: Frank Tang <ftang@chromium.org> Reviewed-by: Jakob Kummerow <jkummerow@chromium.org> Cr-Commit-Position: refs/heads/master@{#55502}
20 lines
719 B
JavaScript
20 lines
719 B
JavaScript
// Copyright 2018 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-intl-list-format
|
|
assertEquals(typeof Intl.ListFormat.supportedLocalesOf, "function",
|
|
"Intl.ListFormat.supportedLocalesOf should be a function");
|
|
|
|
var undef = Intl.ListFormat.supportedLocalesOf();
|
|
assertEquals([], undef);
|
|
|
|
var empty = Intl.ListFormat.supportedLocalesOf([]);
|
|
assertEquals([], empty);
|
|
|
|
var strLocale = Intl.ListFormat.supportedLocalesOf('sr');
|
|
assertEquals('sr', strLocale[0]);
|
|
|
|
var multiLocale = ['sr-Thai-RS', 'de', 'zh-CN'];
|
|
assertEquals(multiLocale, Intl.ListFormat.supportedLocalesOf(multiLocale));
|