a52c42dad8
Spec: http://tc39.github.io/proposal-intl-relative-time/ Design Doc: go/add-intl.relativetimeformat-to-v8 Test: test262/intl402/RelativeTimeFormat/*, intl/relative-time-format/* R=gsathya@chromium.org, mstarzinger@chromium.org Bug: v8:7869 Cq-Include-Trybots: luci.v8.try:v8_linux_noi18n_rel_ng Change-Id: Ic1ef2e26d164275791dfdbe37d016ba350256d94 Reviewed-on: https://chromium-review.googlesource.com/1125539 Commit-Queue: Frank Tang <ftang@chromium.org> Reviewed-by: Sathya Gunasekaran <gsathya@chromium.org> Cr-Commit-Position: refs/heads/master@{#54359}
15 lines
493 B
JavaScript
15 lines
493 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-relative-time-format --harmony-locale
|
|
// Environment Variables: LC_ALL=pt_BR
|
|
assertEquals(
|
|
'pt-BR',
|
|
(new Intl.RelativeTimeFormat()).resolvedOptions().locale);
|
|
|
|
assertEquals(
|
|
'pt-BR',
|
|
(new Intl.RelativeTimeFormat([], {style: 'short', numeric: 'auto'}))
|
|
.resolvedOptions().locale);
|