Commit 0ccb0281 authored by kozyatinskiy's avatar kozyatinskiy Committed by Commit bot

[test262] skip two Intl.NumberFormat tests

Currently try bots [1] are failing on these tests and no CLs can be landed to V8. It looks like these tests were added recently.
Based on https://bugs.chromium.org/p/v8/issues/detail?id=6015, it's known issue in V8 implementation, so mark them as needs investigation.

[1] https://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel_ng_triggered/builds/16490/steps/Test262%20-%20no%20variants

BUG=v8:6015,v8:6016
TBR=adamk@chromium.org,littledan@chromium.org
NOTREECHECKS=true

Review-Url: https://codereview.chromium.org/2717773002
Cr-Commit-Position: refs/heads/master@{#43423}
parent d2c093bc
// Copyright 2017 the V8 project authors. All rights reserved.
// This code is governed by the license found in the LICENSE file.
/*---
esid: ECMA-402 #sec-setnfdigitoptions
description: >
When a currency is used in Intl.NumberFormat and minimumFractionDigits is
not provided, maximumFractionDigits should be range-checked against it.
include: [assert.js]
---*/
assert.throws(RangeError,
() => new Intl.NumberFormat('en', {
style: 'currency',
currency: 'USD',
maximumFractionDigits: 1
}));
// Copyright 2017 the V8 project authors. All rights reserved.
// This code is governed by the license found in the LICENSE file.
/*---
esid: ECMA-402 #sec-setnfdigitoptions
description: >
The maximum and minimum fraction digits properties should be read from
the options bag exactly once from the NumberFormat constructor.
Regression test for https://bugs.chromium.org/p/v8/issues/detail?id=6015
include: [assert.js]
---*/
var minCounter = 0;
var maxCounter = 0;
new Intl.NumberFormat("en", { get minimumFractionDigits() { minCounter++ },
get maximumFractionDigits() { maxCounter++ } });
assert.sameValue(1, minCounter);
assert.sameValue(1, maxCounter);
......@@ -548,6 +548,8 @@
'intl402/NumberFormat/11.2.3_b': [FAIL],
'intl402/NumberFormat/prototype/11.3_a': [FAIL],
'intl402/String/prototype/localeCompare/13.1.1_7': [PASS, FAIL],
'intl402/NumberFormat/default-currency-maximum-fraction-digits': [PASS, FAIL],
'intl402/NumberFormat/fraction-digit-options-read-once': [PASS, FAIL],
##################### DELIBERATE INCOMPATIBILITIES #####################
......
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