[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}
This commit is contained in:
parent
c75296f62b
commit
bf5312b6c7
@ -36,6 +36,9 @@
|
||||
|
||||
# http://crbug/v8/9930
|
||||
'date-format/format_range_hour_cycle': [FAIL],
|
||||
|
||||
# http://crbug/v8/10437
|
||||
'regress-10437': [FAIL],
|
||||
}], # ALWAYS
|
||||
|
||||
['variant == no_wasm_traps', {
|
||||
|
18
test/intl/regress-10437.js
Normal file
18
test/intl/regress-10437.js
Normal file
@ -0,0 +1,18 @@
|
||||
// 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));
|
Loading…
Reference in New Issue
Block a user