Debian Codegraph @

js/src/tests/test262/intl402/DurationFormat/constructor-options-localeMatcher-valid.js

raw
1 // |reftest| skip-if(!Intl.hasOwnProperty('DurationFormat')) -- Intl.DurationFormat is not enabled unconditionally
2 // Copyright 2022 Igalia, S.L. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 esid: sec-Intl.DurationFormat
7 description: Tests that the option localeMatcher is processed correctly.
8 info: |
9 Intl.DurationFormat ( [ locales [ , options ] ] )
10 (...)
11 5. Let matcher be ? GetOption(options, "localeMatcher", "string", « "lookup", "best fit" », "best fit").
12 features: [Intl.DurationFormat]
13 includes: [testIntl.js]
14 ---*/
15
16 testOption(Intl.DurationFormat, "localeMatcher", "string", ["lookup", "best fit"], "best fit", {noReturn: true});
17
18 reportCompare(0, 0);