v8/test/intl/regress-10437.js
Frank Tang bf5312b6c7 [intl] Add failing test for v8:10437
Pick handful of failure cases from
https://bugs.chromium.org/p/v8/issues/detail?id=10437

Mark the test fail
The bug should be fixed by ICU67.1 and will be landed soon.

Bug: v8:10437
Change-Id: Iac309dd48b2220da777c006c7a35fac24e454430
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2161510
Commit-Queue: Frank Tang <ftang@chromium.org>
Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
Cr-Commit-Position: refs/heads/master@{#67345}
2020-04-23 17:10:17 +00:00

19 lines
755 B
JavaScript

// Copyright 2020 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.
assertDoesNotThrow(() => (new Intl.NumberFormat(
'ar', {style: 'unit', unit: 'acre-per-degree'})).format(0));
assertDoesNotThrow(() => (new Intl.NumberFormat(
'ar', {style: 'unit', unit: 'millimeter-per-mile'})).format(0));
assertDoesNotThrow(() => (new Intl.NumberFormat(
'ar', {style: 'unit', unit: 'centimeter-per-acre'})).format(1));
assertDoesNotThrow(() => (new Intl.NumberFormat(
'ar', {style: 'unit', unit: 'minute-per-yard'})).format(1));
assertDoesNotThrow(() => (new Intl.NumberFormat(
'ar', {style: 'unit', unit: 'foot-per-fluid-ounce'})).format(2));