From 40a355a42d4a9444dc753c04c6608dade2f06a23 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:27 +0200 Subject: Adding upstream version 125.0.1. Signed-off-by: Daniel Baumann --- toolkit/components/mozintl/test/test_mozintl.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'toolkit/components/mozintl/test') diff --git a/toolkit/components/mozintl/test/test_mozintl.js b/toolkit/components/mozintl/test/test_mozintl.js index dc7b8a7afd..2ee1583b8c 100644 --- a/toolkit/components/mozintl/test/test_mozintl.js +++ b/toolkit/components/mozintl/test/test_mozintl.js @@ -139,6 +139,10 @@ function test_rtf_formatBestUnit() { let anchor = new Date("2016-04-10 12:00:00"); testRTFBestUnit(anchor, "2014-04-01 00:00", "2 years ago"); testRTFBestUnit(anchor, "2015-03-01 00:00", "last year"); + testRTFBestUnit(anchor, "2015-04-01 00:00", "last year"); + testRTFBestUnit(anchor, "2015-05-01 00:00", "11 months ago"); + testRTFBestUnit(anchor, "2015-12-01 00:00", "4 months ago"); + testRTFBestUnit(anchor, "2016-02-01 00:00", "2 months ago"); testRTFBestUnit(anchor, "2017-05-01 00:00", "next year"); testRTFBestUnit(anchor, "2024-12-01 23:59", "in 8 years"); @@ -147,8 +151,10 @@ function test_rtf_formatBestUnit() { testRTFBestUnit(anchor, "2015-12-29 18:30", "2 years ago"); anchor = new Date("2016-12-29 18:30"); - testRTFBestUnit(anchor, "2017-07-12 18:30", "next year"); testRTFBestUnit(anchor, "2017-02-12 18:30", "in 2 months"); + testRTFBestUnit(anchor, "2017-07-12 18:30", "in 7 months"); + testRTFBestUnit(anchor, "2017-11-29 18:30", "in 11 months"); + testRTFBestUnit(anchor, "2017-12-01 18:30", "next year"); testRTFBestUnit(anchor, "2018-01-02 18:30", "in 2 years"); testRTFBestUnit(anchor, "2098-01-02 18:30", "in 82 years"); -- cgit v1.2.3