From ef856ec3b3b75fd8af697eafbbce4de68aa724a1 Mon Sep 17 00:00:00 2001 From: Frank Yung-Fong Tang Date: Fri, 17 Sep 2021 12:33:38 -0700 Subject: [PATCH] Move IANA TimeZone test to intl402 --- .../timezone-string-datetime.js | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/test/built-ins/Temporal/Now/zonedDateTimeISO/timezone-string-datetime.js b/test/built-ins/Temporal/Now/zonedDateTimeISO/timezone-string-datetime.js index de88cf693e..186d3d77a9 100644 --- a/test/built-ins/Temporal/Now/zonedDateTimeISO/timezone-string-datetime.js +++ b/test/built-ins/Temporal/Now/zonedDateTimeISO/timezone-string-datetime.js @@ -23,20 +23,8 @@ assert.sameValue(result3.timeZone.id, "-07:00", "date-time + offset is the offse const result4 = Temporal.Now.zonedDateTimeISO({ timeZone }); assert.sameValue(result4.timeZone.id, "-07:00", "date-time + offset is the offset time zone (string in property bag)"); -timeZone = "2021-08-19T17:30[America/Vancouver]"; +timeZone = "2021-08-19T17:30-0700"; const result5 = Temporal.Now.zonedDateTimeISO(timeZone); -assert.sameValue(result5.timeZone.id, "America/Vancouver", "date-time + IANA annotation is the IANA time zone"); +assert.sameValue(result5.timeZone.id, "-07:00", "date-time + offset is the offset time zone"); const result6 = Temporal.Now.zonedDateTimeISO({ timeZone }); -assert.sameValue(result6.timeZone.id, "America/Vancouver", "date-time + IANA annotation is the IANA time zone (string in property bag)"); - -timeZone = "2021-08-19T17:30Z[America/Vancouver]"; -const result7 = Temporal.Now.zonedDateTimeISO(timeZone); -assert.sameValue(result7.timeZone.id, "America/Vancouver", "date-time + Z + IANA annotation is the IANA time zone"); -const result8 = Temporal.Now.zonedDateTimeISO({ timeZone }); -assert.sameValue(result8.timeZone.id, "America/Vancouver", "date-time + Z + IANA annotation is the IANA time zone (string in property bag)"); - -timeZone = "2021-08-19T17:30-07:00[America/Vancouver]"; -const result9 = Temporal.Now.zonedDateTimeISO(timeZone); -assert.sameValue(result9.timeZone.id, "America/Vancouver", "date-time + offset + IANA annotation is the IANA time zone"); -const result10 = Temporal.Now.zonedDateTimeISO({ timeZone }); -assert.sameValue(result10.timeZone.id, "America/Vancouver", "date-time + offset + IANA annotation is the IANA time zone (string in property bag)"); +assert.sameValue(result6.timeZone.id, "-07:00", "date-time + offset is the offset time zone (string in property bag)");