Commit 7ad9ae1a authored by Frank Tang's avatar Frank Tang Committed by V8 LUCI CQ

Correct test to sync to PR85 and add test to show problem in v8:12977

https://github.com/tc39/proposal-intl-numberformat-v3/pull/85

Also add test to show the problem while using numberingSystem with formatRange


Bug: v8:12977, v8:10776
Change-Id: I09845b6f04994dc84b9a21e272d39d785db3317a
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3708020
Commit-Queue: Frank Tang <ftang@chromium.org>
Reviewed-by: 's avatarShu-yu Guo <syg@chromium.org>
Cr-Commit-Position: refs/heads/main@{#81199}
parent 39296d3c
......@@ -30,7 +30,9 @@
[ALWAYS, {
# TODO(ftang,jshin): The following test is flaky.
'overrides/caching': [PASS, FAIL],
'number-format/rounding-increment-resolved-match-v3': [FAIL],
# https://bugs.chromium.org/p/v8/issues/detail?id=12977
'number-format/format-range-numbering-system': [FAIL],
}], # ALWAYS
################################################################################
......
// Copyright 2022 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-number-format-v3
let latn = new Intl.NumberFormat("en", {numberingSystem: "latn"})
assertDoesNotThrow(() => latn.formatRange(1, 234));
let arab = new Intl.NumberFormat("en", {numberingSystem: "arab"})
assertDoesNotThrow(() => arab.formatRange(1, 234));
let thai = new Intl.NumberFormat("en", {numberingSystem: "thai"})
assertDoesNotThrow(() => thai.formatRange(1, 234));
......@@ -6,8 +6,11 @@
let validRoundingIncrements = [
1, 2, 5, 10, 20, 25, 50, 100, 200, 250, 500, 1000, 2000, 2500, 5000];
let maximumFractionDigits = 3;
let minimumFractionDigits = maximumFractionDigits;
validRoundingIncrements.forEach(function(roundingIncrement) {
let nf = new Intl.NumberFormat(undefined, {roundingIncrement});
let nf = new Intl.NumberFormat(undefined,
{roundingIncrement, minimumFractionDigits, maximumFractionDigits});
assertEquals(roundingIncrement, nf.resolvedOptions().roundingIncrement);
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment