Bug 1353650 - Part 5: Update expected time zone string after ICU update. r=Waldo
authorAndré Bargull <andre.bargull@gmail.com>
Wed, 05 Apr 2017 13:43:21 +0200
changeset 601731 1dcae90ce0b7bb72460995f69dea1e78e4beaeec
parent 601730 3b59d9b42f78091509507be1eeb254012d879a61
child 601732 e69d4b4152c88dc18a10757b144d7eb3e49d4d83
push id66200
push userhchang@mozilla.com
push dateThu, 29 Jun 2017 03:53:43 +0000
reviewersWaldo
bugs1353650
milestone56.0a1
Bug 1353650 - Part 5: Update expected time zone string after ICU update. r=Waldo
js/src/tests/Intl/Date/toLocaleDateString_timeZone.js
js/src/tests/Intl/DateTimeFormat/format.js
--- a/js/src/tests/Intl/Date/toLocaleDateString_timeZone.js
+++ b/js/src/tests/Intl/Date/toLocaleDateString_timeZone.js
@@ -2,17 +2,17 @@
 
 const defaultLocale = "en-US";
 const defaultDate = Date.UTC(2012, 12-1, 6, 12, 0, 0);
 const defaultOptions = { timeZoneName: "short" };
 
 const tests = [
     {
         timeZone: "UTC",
-        result: "12/6/2012, GMT",
+        result: "12/6/2012, UTC",
     },
     {
         timeZone: "America/Los_Angeles",
         result: "12/6/2012, PST",
     },
     {
         timeZone: "Europe/Berlin", locale: "de",
         options: { timeZoneName: "short" },
--- a/js/src/tests/Intl/DateTimeFormat/format.js
+++ b/js/src/tests/Intl/DateTimeFormat/format.js
@@ -30,17 +30,17 @@ format = new Intl.DateTimeFormat("ja-jp"
 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");
 
 // Locale en-IE: timeZoneName for crash test
 format = new Intl.DateTimeFormat("en-IE", {timeZone: "UTC", timeZoneName: "short"});
-assertEq(format.format(date), "12/12/2012, GMT");
+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);
 assertEq(typeof desc.get, "function");
 assertEq(desc.get.name, "get format");