mirror of
https://github.com/tc39/test262.git
synced 2025-07-30 01:14:56 +02:00
Use formatDurationFormatPattern for "/numeric-hour-with-zero-minutes-and-non-zero-seconds"
The changes from the first commit allow to use `formatDurationFormatPattern` for this test.
This commit is contained in:
parent
330ecdd016
commit
cadd064174
@ -4,8 +4,9 @@
|
|||||||
/*---
|
/*---
|
||||||
esid: sec-Intl.DurationFormat.prototype.format
|
esid: sec-Intl.DurationFormat.prototype.format
|
||||||
description: >
|
description: >
|
||||||
Minutes with numeric or 2-digit style are included in the output when between displayed hours and seconds, even when the minutes value is zero.
|
The correct separator is used for numeric hours with zero minutes and non-zero seconds.
|
||||||
locale: [en]
|
locale: [en]
|
||||||
|
includes: [testIntl.js]
|
||||||
features: [Intl.DurationFormat]
|
features: [Intl.DurationFormat]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
@ -20,7 +21,7 @@ const duration = {
|
|||||||
seconds: 3,
|
seconds: 3,
|
||||||
};
|
};
|
||||||
|
|
||||||
const expected = "1:00:03"
|
const expected = formatDurationFormatPattern(df, duration);
|
||||||
|
|
||||||
assert.sameValue(
|
assert.sameValue(
|
||||||
df.format(duration),
|
df.format(duration),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user