diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
commit | 8dd16259287f58f9273002717ec4d27e97127719 (patch) | |
tree | 3863e62a53829a84037444beab3abd4ed9dfc7d0 /js/src/tests/non262/Date/dashed-date.js | |
parent | Releasing progress-linux version 126.0.1-1~progress7.99u1. (diff) | |
download | firefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz firefox-8dd16259287f58f9273002717ec4d27e97127719.zip |
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'js/src/tests/non262/Date/dashed-date.js')
-rw-r--r-- | js/src/tests/non262/Date/dashed-date.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/js/src/tests/non262/Date/dashed-date.js b/js/src/tests/non262/Date/dashed-date.js index d7b4692e7f..58302713bc 100644 --- a/js/src/tests/non262/Date/dashed-date.js +++ b/js/src/tests/non262/Date/dashed-date.js @@ -8,8 +8,6 @@ const tests = [ ["24-APRIL-2023", "2023-04-24T00:00:00"], ["24-Apr-2033", "2033-04-24T00:00:00"], - ["24-Apr-0023", "0023-04-24T00:00:00"], - // dd-MMM-yy ["24-Apr-23", "2023-04-24T00:00:00"], ["24-Apr-33", "2033-04-24T00:00:00"], @@ -24,7 +22,12 @@ const tests = [ ["APRIL-24-2023", "2023-04-24T00:00:00"], ["Apr-24-2033", "2033-04-24T00:00:00"], - ["Apr-24-0023", "0023-04-24T00:00:00"], + // Year should get fixed up even with leading 0s + ["Apr-24-23", "2023-04-24T00:00:00"], + ["Apr-24-0023", "2023-04-24T00:00:00"], + ["24-Apr-0023", "2023-04-24T00:00:00"], + ["24-Apr-00023", "2023-04-24T00:00:00"], + ["24-Apr-000023", "2023-04-24T00:00:00"], // MMM-dd-yy ["Apr-24-23", "2023-04-24T00:00:00"], |