Skip to content

Commit 77b60a1

Browse files
catamorphismMs2ger
authored andcommitted
[Temporal] Remove test/staging/Temporal/v8/calendar-year.js
And move tests into separate files for each type.
1 parent 48c08e9 commit 77b60a1

File tree

5 files changed

+44
-15
lines changed

5 files changed

+44
-15
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Copyright (C) 2026 Igalia, S.L. All rights reserved.
2+
// This code is governed by the BSD license found in the LICENSE file.
3+
4+
/*---
5+
esid: sec-get-temporal.plaindate.prototype.year
6+
description: The "year" property of Temporal.PlainDate.prototype
7+
features: [Temporal]
8+
---*/
9+
10+
assert.sameValue((new Temporal.PlainDate(2021, 7, 15)).year, 2021);
11+
assert.sameValue(Temporal.PlainDate.from('2019-03-15').year, 2019);
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Copyright (C) 2026 Igalia, S.L. All rights reserved.
2+
// This code is governed by the BSD license found in the LICENSE file.
3+
4+
/*---
5+
esid: sec-get-temporal.plaindatetime.prototype.year
6+
description: The "year" property of Temporal.PlainDateTime.prototype
7+
features: [Temporal]
8+
---*/
9+
10+
assert.sameValue((new Temporal.PlainDateTime(2021, 7, 15, 15, 30, 26, 123, 456, 789)).year, 2021);
11+
assert.sameValue(Temporal.PlainDateTime.from('2019-03-15T15:30:26').year, 2019);
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Copyright (C) 2026 Igalia, S.L. All rights reserved.
2+
// This code is governed by the BSD license found in the LICENSE file.
3+
4+
/*---
5+
esid: sec-get-temporal.plainyearmonth.prototype.year
6+
description: The "year" property of Temporal.PlainYearMonth.prototype
7+
features: [Temporal]
8+
---*/
9+
10+
assert.sameValue((new Temporal.PlainYearMonth(2021, 7)).year, 2021);
11+
assert.sameValue(Temporal.PlainYearMonth.from('2019-03').year, 2019);
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Copyright (C) 2026 Igalia, S.L. All rights reserved.
2+
// This code is governed by the BSD license found in the LICENSE file.
3+
4+
/*---
5+
esid: sec-get-temporal.zoneddatetime.prototype.year
6+
description: The "year" property of Temporal.ZonedDateTime.prototype
7+
features: [Temporal]
8+
---*/
9+
10+
assert.sameValue((new Temporal.ZonedDateTime(0n, "UTC")).year, 1970);
11+
assert.sameValue(Temporal.ZonedDateTime.from('2019-03-15T15:30:26+00:00[UTC]').year, 2019);

test/staging/Temporal/v8/calendar-year.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)