mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +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
|
||||
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]
|
||||
includes: [testIntl.js]
|
||||
features: [Intl.DurationFormat]
|
||||
---*/
|
||||
|
||||
@ -20,7 +21,7 @@ const duration = {
|
||||
seconds: 3,
|
||||
};
|
||||
|
||||
const expected = "1:00:03"
|
||||
const expected = formatDurationFormatPattern(df, duration);
|
||||
|
||||
assert.sameValue(
|
||||
df.format(duration),
|
||||
|
Loading…
x
Reference in New Issue
Block a user