commit bd367a8e2912a1d7e436676a545241551390c494
parent aaa2e56515e13cdb1b05843175aa7d88d5364ba4
Author: André Bargull <andre.bargull@gmail.com>
Date: Fri, 14 Nov 2025 14:16:14 +0000
Bug 1999948 - Part 3: Fold time-zones-pedantic.js into time-zones.js. r=spidermonkey-reviewers,jandem
This test was executed on OSX (see part 1), so it seems safe to fold it into
the main test file.
Differential Revision: https://phabricator.services.mozilla.com/D272442
Diffstat:
2 files changed, 9 insertions(+), 15 deletions(-)
diff --git a/js/src/tests/non262/Date/time-zones-pedantic.js b/js/src/tests/non262/Date/time-zones-pedantic.js
@@ -1,15 +0,0 @@
-// |reftest| skip-if(winWidget||cocoaWidget) -- Skip on OS X in addition to Windows
-
-// Contains the tests from "time-zones.js" which fail on OS X.
-
-// bug 637244
-inTimeZone("Asia/Novosibirsk", () => {
- let dt1 = new Date(1984, Month.April, 1, -1);
- assertDateTime(dt1, "Sat Mar 31 1984 23:00:00 GMT+0700 (NOVT)", "+07", "Novosibirsk Standard Time");
-
- let dt2 = new Date(1984, Month.April, 1);
- assertDateTime(dt2, "Sun Apr 01 1984 01:00:00 GMT+0800 (NOVST)", "+08", "Novosibirsk Summer Time");
-});
-
-if (typeof reportCompare === "function")
- reportCompare(true, true);
diff --git a/js/src/tests/non262/Date/time-zones.js b/js/src/tests/non262/Date/time-zones.js
@@ -42,6 +42,15 @@ inTimeZone("Europe/Helsinki", () => {
assertDateTime(dt2, "Sun Mar 27 2016 04:00:00 GMT+0300 (EEST)", "Eastern European Summer Time");
});
+// bug 637244
+inTimeZone("Asia/Novosibirsk", () => {
+ let dt1 = new Date(1984, Month.April, 1, -1);
+ assertDateTime(dt1, "Sat Mar 31 1984 23:00:00 GMT+0700 (NOVT)", "+07", "Novosibirsk Standard Time");
+
+ let dt2 = new Date(1984, Month.April, 1);
+ assertDateTime(dt2, "Sun Apr 01 1984 01:00:00 GMT+0800 (NOVST)", "+08", "Novosibirsk Summer Time");
+});
+
// bug 718175
inTimeZone("Europe/London", () => {
let dt = new Date(0);