1 // |reftest| skip -- Intl.DurationFormat is not supported
2 // Copyright 2022 Igalia, S.L. All rights reserved.
3 // Copyright 2023 Apple Inc. All rights reserved.
4 // This code is governed by the BSD license found in the LICENSE file.
7 esid: sec-Intl.DurationFormat.prototype.format
8 description: Test if format method formats duration correctly with different "style" arguments
10 includes: [testIntl.js]
11 features: [Intl.DurationFormat]
14 const style = "digital";
29 const expected = formatDurationFormatPattern(duration, style);
31 const df = new Intl.DurationFormat("en", {style});
32 assert.sameValue(df.format(duration), expected, `Assert DurationFormat format output using ${style} style option`);