Temporal: Add a test for PlainTime#calendar.

This commit is contained in:
Ms2ger 2022-05-19 12:10:32 +02:00 committed by Philip Chimento
parent b8ab7063b0
commit a1a5c91543

View File

@ -0,0 +1,13 @@
// Copyright (C) 2022 Igalia, S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-get-temporal.plaintime.prototype.calendar
description: calendar returns the iso8601 calendar.
features: [Temporal]
---*/
const pt = new Temporal.PlainTime();
assert(pt.calendar instanceof Temporal.Calendar, "getter returns Calendar object");
assert.sameValue(pt.calendar.toString(), "iso8601", "getter returns iso8601 calendar");
assert.sameValue(pt.calendar, pt.calendar, "getter returns the same object");