locales-empty.js (814B)
1 // Copyright 2022 Igalia S.L. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 esid: sec-Intl.DurationFormat.supportedLocalesOf 6 description: Checks handling of an empty locales argument to the supportedLocalesOf function. 7 info: | 8 Intl.DurationFormat.supportedLocalesOf ( locales [, options ]) 9 (...) 10 3. Return ? SupportedLocales(availableLocales, requestedLocales, options). 11 includes: [compareArray.js] 12 features: [Intl.DurationFormat] 13 ---*/ 14 15 assert.sameValue(typeof Intl.DurationFormat.supportedLocalesOf, "function", 16 "Should support Intl.DurationFormat.supportedLocalesOf."); 17 18 assert.compareArray(Intl.DurationFormat.supportedLocalesOf(), []); 19 assert.compareArray(Intl.DurationFormat.supportedLocalesOf([]), []); 20 21 reportCompare(0, 0);