Debian Codegraph @

debian/patches/system-ICU/tests-Use-debian-provided-locale-format-to-check-formatte.patch

raw
1 From: =?utf-8?b?Ik1hcmNvIFRyZXZpc2FuIChUcmV2acOxbyki?= <[email protected]>
2 Date: Tue, 1 Feb 2022 14:33:35 +0100
3 Subject: tests: Use debian provided locale format to check formatted CN dates
4
5 Our system ICU is defaulting to show 24-hours format for zh-Hans-CN
6 locale, while mozilla uses AM/PM version.
7
8 There's no actual difference in result though.
9 ---
10 js/src/tests/non262/Intl/Date/toLocaleString_timeZone.js | 2 +-
11 js/src/tests/non262/Intl/Date/toLocaleTimeString_timeZone.js | 2 +-
12 2 files changed, 2 insertions(+), 2 deletions(-)
13
14 diff --git a/js/src/tests/non262/Intl/Date/toLocaleString_timeZone.js b/js/src/tests/non262/Intl/Date/toLocaleString_timeZone.js
15 index a59ecef..e0670cb 100644
16 --- a/js/src/tests/non262/Intl/Date/toLocaleString_timeZone.js
17 +++ b/js/src/tests/non262/Intl/Date/toLocaleString_timeZone.js
18 @@ -26,7 +26,7 @@ const tests = [
19 {
20 timeZone: "Asia/Shanghai", locale: "zh-Hans-CN",
21 options: { timeZoneName: "long" },
22 - result: "2012/12/6 中国标准时间 下午8:00:00",
23 + result: "2012/12/6 中国标准时间 20:00:00",
24 },
25 {
26 timeZone: { toString: () => "Australia/Melbourne" }, locale: "en-AU",
27 diff --git a/js/src/tests/non262/Intl/Date/toLocaleTimeString_timeZone.js b/js/src/tests/non262/Intl/Date/toLocaleTimeString_timeZone.js
28 index 14799a2..a9b8b5f 100644
29 --- a/js/src/tests/non262/Intl/Date/toLocaleTimeString_timeZone.js
30 +++ b/js/src/tests/non262/Intl/Date/toLocaleTimeString_timeZone.js
31 @@ -26,7 +26,7 @@ const tests = [
32 {
33 timeZone: "Asia/Shanghai", locale: "zh-Hans-CN",
34 options: { timeZoneName: "long" },
35 - result: "中国标准时间 下午8:00:00",
36 + result: "中国标准时间 20:00:00",
37 },
38 {
39 timeZone: { toString: () => "Australia/Melbourne" }, locale: "en-AU",