blob: 8a7aabb4e8b11b92e1b32f3f105afdc17998da8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally
// 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.plaindate.prototype.inleapyear
description: Basic test for inLeapYear
features: [Temporal]
---*/
assert.sameValue((new Temporal.PlainDate(1976, 11, 18)).inLeapYear,
true, "leap year");
assert.sameValue((new Temporal.PlainDate(1977, 11, 18)).inLeapYear,
false, "non-leap year");
reportCompare(0, 0);
|