Bug 1763783 - Part 7: Update expected test results. r=platform-i18n-reviewers,jfkthame

Depends on D143279

Differential Revision: https://phabricator.services.mozilla.com/D143280
This commit is contained in:
André Bargull 2022-04-09 15:09:16 +00:00
Родитель 30a13eeb31
Коммит 5016c99b8f
6 изменённых файлов: 21 добавлений и 14 удалений

Просмотреть файл

@ -618,6 +618,7 @@ skip script test262/built-ins/TypedArray/prototype/sort/sort-tonumber.js
# https://bugzilla.mozilla.org/show_bug.cgi?id=1763607
skip script test262/intl402/NumberFormat/constructor-roundingIncrement-invalid.js
skip script test262/intl402/NumberFormat/prototype/format/format-rounding-priority-less-precision.js
skip script test262/intl402/NumberFormat/prototype/format/format-rounding-priority-more-precision.js
skip script test262/intl402/NumberFormat/prototype/format/format-rounding-increment-500.js
skip script test262/intl402/NumberFormat/prototype/format/format-rounding-increment-50.js
skip script test262/intl402/NumberFormat/prototype/format/format-rounding-increment-5.js
@ -634,6 +635,9 @@ skip script test262/intl402/NumberFormat/prototype/format/format-rounding-increm
skip script test262/intl402/PluralRules/prototype/selectRange/nan-arguments-throws.js
skip script test262/intl402/PluralRules/prototype/selectRange/undefined-arguments-throws.js
# Currency code "SLE" not returned by ucurr_openISOCurrencies
skip script test262/intl402/Intl/supportedValuesOf/currencies-accepted-by-DisplayNames.js
###########################################################
# Tests disabled due to issues in test262 importer script #

Просмотреть файл

@ -21,7 +21,7 @@ const tests = [
{
timeZone: "Europe/Paris", locale: "fr",
options: { timeZoneName: "long" },
result: "06/12/2012, heure normale dEurope centrale",
result: "06/12/2012 heure normale dEurope centrale",
},
{
timeZone: "Asia/Shanghai", locale: "zh-Hans-CN",

Просмотреть файл

@ -21,7 +21,7 @@ const tests = [
{
timeZone: "Europe/Paris", locale: "fr",
options: { timeZoneName: "long" },
result: "06/12/2012, 13:00:00 heure normale dEurope centrale",
result: "06/12/2012 13:00:00 heure normale dEurope centrale",
},
{
timeZone: "Asia/Shanghai", locale: "zh-Hans-CN",

Просмотреть файл

@ -46,7 +46,7 @@ const tests = {
locales: {
"en": "5/20/2021, GMT-7",
"de": "20.5.2021, GMT-7",
"fr": "20/05/2021, UTC7",
"fr": "20/05/2021 UTC7",
"ar": "٢٠‏/٥/٢٠٢١, غرينتش-٧",
"th": "20/5/2564 GMT-7",
"zh": "2021/5/20 GMT-7",
@ -72,7 +72,7 @@ const tests = {
locales: {
"en": "5/20/2021, Germany Time",
"de": "20.5.2021, MEZ",
"fr": "20/05/2021, heure : Allemagne",
"fr": "20/05/2021 heure : Allemagne",
"ar": "٢٠‏/٥/٢٠٢١, توقيت ألمانيا",
"th": "20/5/2564 เวลาเยอรมนี",
"zh": "2021/5/20 德国时间",
@ -85,7 +85,7 @@ const tests = {
locales: {
"en": "12/6/1971, GMT-00:44:30",
"de": "6.12.1971, GMT-00:44:30",
"fr": "06/12/1971, UTC00:44:30",
"fr": "06/12/1971 UTC00:44:30",
"ar": "٦‏/١٢‏/١٩٧١ غرينتش-٠٠:٤٤:٣٠",
"th": "6/12/2514 GMT-00:44:30",
"zh": "1971/12/6 GMT-00:44:30",
@ -98,7 +98,7 @@ const tests = {
locales: {
"en": "12/6/1971, GMT-0:44:30",
"de": "6.12.1971, GMT-0:44:30",
"fr": "06/12/1971, UTC0:44:30",
"fr": "06/12/1971 UTC0:44:30",
"ar": "٦‏/١٢‏/١٩٧١, غرينتش-٠:٤٤:٣٠",
"th": "6/12/2514 GMT-0:44:30",
"zh": "1971/12/6 GMT-0:44:30",

Просмотреть файл

@ -29,6 +29,9 @@ available.map(x => {
}).filter(loc => {
// Find all locales which have both a script and a region subtag.
return loc.script && loc.region;
}).filter(loc => {
// Skip "sd-Deva-IN" because of <https://unicode-org.atlassian.net/browse/ICU-21974>.
return !(loc.language === "sd" && loc.script === "Deva" && loc.region === "IN");
}).forEach(loc => {
// Remove the script subtag from the locale.
let noScript = new Intl.Locale(`${loc.language}-${loc.region}`);
@ -38,10 +41,10 @@ available.map(x => {
for (let opt of options) {
// Formatter for the locale without a script subtag.
let df1 = new Intl.DateTimeFormat(noScript, options);
let df1 = new Intl.DateTimeFormat(noScript, opt);
// Formatter for the locale with the likely script subtag added.
let df2 = new Intl.DateTimeFormat(maximized, options);
let df2 = new Intl.DateTimeFormat(maximized, opt);
// The output for the locale without a script subtag should match the output
// with the likely script subtag added.

Просмотреть файл

@ -23,7 +23,7 @@ const tests = [
},
roundingPriorities: {
auto: "4.3",
lessPrecision: "4.30",
lessPrecision: "4.3",
morePrecision: "4.32",
},
},
@ -50,7 +50,7 @@ const tests = [
},
roundingPriorities: {
auto: "4.3",
lessPrecision: "4.30",
lessPrecision: "4.3",
morePrecision: "4.32",
},
},
@ -67,7 +67,7 @@ const tests = [
// Returning "1.00" for both options seems unexpected. Also filed at
// <https://github.com/tc39/proposal-intl-numberformat-v3/issues/52>.
lessPrecision: "1.00",
morePrecision: "1.00",
morePrecision: "1.0",
},
},
{
@ -80,7 +80,7 @@ const tests = [
roundingPriorities: {
auto: "1.0",
lessPrecision: "1.00",
morePrecision: "1.00",
morePrecision: "1.0",
},
},
{
@ -92,7 +92,7 @@ const tests = [
},
roundingPriorities: {
auto: "1.0",
lessPrecision: "1.00",
lessPrecision: "1.0",
morePrecision: "1.00",
},
},
@ -106,7 +106,7 @@ const tests = [
},
roundingPriorities: {
auto: "1.0",
lessPrecision: "1.00",
lessPrecision: "1.0",
morePrecision: "1.00",
},
},