Debian Codegraph @

debian/patches/system-ICU/tests-Disable-failing-DateTimeFormat-tests-with-system-IC.patch

raw
1 From: =?utf-8?b?Ik1hcmNvIFRyZXZpc2FuIChUcmV2acOxbyki?= <[email protected]>
2 Date: Tue, 1 Feb 2022 14:39:33 +0100
3 Subject: tests: Disable failing DateTimeFormat tests with system ICU
4
5 Those are regression from mozjs78
6 ---
7 js/src/tests/jstests.list | 7 +++++++
8 js/src/tests/non262/Intl/DateTimeFormat/day-period-hour-cycle.js | 2 ++
9 2 files changed, 9 insertions(+)
10
11 diff --git a/js/src/tests/jstests.list b/js/src/tests/jstests.list
12 index 6d2b4e1..0c21e26 100644
13 --- a/js/src/tests/jstests.list
14 +++ b/js/src/tests/jstests.list
15 @@ -650,6 +650,13 @@ skip script non262/Date/time-zones-historic.js
16
17 skip script non262/Intl/DateTimeFormat/timeZone_backward_links.js
18
19 +# DateTimeFormat is lacking some features when using system ICU:
20 +skip script non262/Intl/DateTimeFormat/fractional-second-digits-append-item.js
21 +
22 +# DateTimeFormat is causing some failures in mozjs91 with system ICU, those are REGRESSIONS:
23 +skip script non262/Intl/DateTimeFormat/related-year.js
24 +skip script non262/Intl/DateTimeFormat/japanese-gannen-year.js
25 +
26 # These tests don't work with current (2022.02.01) System ICU.
27 # They were skipped by upstream already in mozjs78, so this is not a regression but rather
28 # a missing debian feature that requires ICU updates.
29 diff --git a/js/src/tests/non262/Intl/DateTimeFormat/day-period-hour-cycle.js b/js/src/tests/non262/Intl/DateTimeFormat/day-period-hour-cycle.js
30 index 6bfbf94..0ad0640 100644
31 --- a/js/src/tests/non262/Intl/DateTimeFormat/day-period-hour-cycle.js
32 +++ b/js/src/tests/non262/Intl/DateTimeFormat/day-period-hour-cycle.js
33 @@ -76,6 +76,7 @@ const tests = [
34 },
35
36 // ICU replacement pattern for missing <appendItem> entries in CLDR.
37 + /* Currently unsupported by debian system ICU
38 {
39 date: new Date("2019-01-01T12:00:00"),
40 options: { dayPeriod: "short", minute: "numeric" },
41 @@ -84,6 +85,7 @@ const tests = [
42 de: [Minute("0"), Literal(" (Tageshälfte: "), DayPeriod("mittags"), Literal(")")],
43 },
44 },
45 + */
46 ];
47
48 for (let {date, options, locales} of tests) {