Bug 1405993 - Part 5: Updated expected results when formatting dates in ar-ma locale. r=Waldo
authorAndré Bargull <andre.bargull@gmail.com>
Wed, 01 Nov 2017 12:04:21 -0700
changeset 391990 8f65e64a3b9ea97411699d47450c0dad69db383a
parent 391989 cf8f20a4de1ba5b87d658e1f556aa18e5bde0b9e
child 391991 a917acc8147cd8bb7fa7f49b0663e1225175b217
push id32909
push usercbrindusan@mozilla.com
push dateWed, 15 Nov 2017 22:25:14 +0000
treeherdermozilla-central@f41930a869a8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersWaldo
bugs1405993
milestone59.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1405993 - Part 5: Updated expected results when formatting dates in ar-ma locale. r=Waldo
js/src/tests/Intl/DateTimeFormat/format.js
js/src/tests/Intl/DateTimeFormat/format_timeZone.js
--- a/js/src/tests/Intl/DateTimeFormat/format.js
+++ b/js/src/tests/Intl/DateTimeFormat/format.js
@@ -26,17 +26,17 @@ format = new Intl.DateTimeFormat("th-th-
 assertEq(format.format(date), "๑๒ ธันวาคม ๒๕๕๕ ๐๓:๐๐:๐๐");
 
 // Locale ja-JP; long format.
 format = new Intl.DateTimeFormat("ja-jp", longFormatOptions);
 assertEq(format.format(date), "2012年12月12日 3:00:00");
 
 // Locale ar-MA; long format, Islamic civilian calendar.
 format = new Intl.DateTimeFormat("ar-ma-u-ca-islamicc", longFormatOptions);
-assertEq(format.format(date), "28 محرم، 1434 03:00:00");
+assertEq(format.format(date), "28 محرم 1434 03:00:00");
 
 // Locale en-IE: timeZoneName for crash test
 format = new Intl.DateTimeFormat("en-IE", {timeZone: "UTC", timeZoneName: "short"});
 assertEq(format.format(date), "12/12/2012, UTC");
 
 // Test the .name property of the "format" getter.
 var desc = Object.getOwnPropertyDescriptor(Intl.DateTimeFormat.prototype, "format");
 assertEq(desc !== undefined, true);
--- a/js/src/tests/Intl/DateTimeFormat/format_timeZone.js
+++ b/js/src/tests/Intl/DateTimeFormat/format_timeZone.js
@@ -39,17 +39,17 @@ const tests = [
     },
     {
         timeZone: "Europe/London",
         result: "12/6/2012, 12:00:00 PM",
     },
     {
         timeZone: "Africa/Casablanca",
         locale: "ar-MA-u-ca-islamicc", options: longFormatOptions,
-        result: "22 محرم، 1434 12:00:00",
+        result: "22 محرم 1434 12:00:00",
     },
     {
         timeZone: "Europe/Berlin",
         locale: "de-DE", options: tzNameFormatOptions,
         result: "6.12.2012, 13:00:00 MEZ",
     },
     {
         timeZone: "Asia/Kathmandu",