mirror of
https://github.com/tc39/test262.git
synced 2025-07-28 08:24:23 +02:00
Temporal: Add a test for PlainTime#calendar.
This commit is contained in:
parent
b8ab7063b0
commit
a1a5c91543
13
test/built-ins/Temporal/PlainTime/prototype/calendar/basic.js
vendored
Normal file
13
test/built-ins/Temporal/PlainTime/prototype/calendar/basic.js
vendored
Normal 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");
|
Loading…
x
Reference in New Issue
Block a user