Skip to content

Commit 3ceefaa

Browse files
ioannadptomato
authored andcommitted
[Temporal] (Re)move v8 staging test plain-date-get-iso-fields, -value-of, -equals, -with-calendar
These are small, bunched them together. The tests in `test/staging/Temporal/v8/plain-date-get-iso-fields.js` are covered by tests in `test/built-ins/Temporal/PlainDate/basic.js` The test in `test/staging/Temporal/v8/plain-date-value-of.js` is covered by `test/built-ins/Temporal/PlainDate/prototype/valueOf/basic.js` The tests in `test/staging/Temporal/v8/plain-date-equals.js` are covered by - `test/built-ins/Temporal/PlainDate/prototype/equals/basic.js` - `test/built-ins/Temporal/PlainDate/prototype/equals/argument-string.js` - `test/built-ins/Temporal/PlainDate/prototype/equals/branding.js` The first test in `test/staging/Temporal/v8/plain-date-with-calendar.js` is covered `test/built-ins/Temporal/PlainDate/prototype/withCalendar/branding.js`. Move the rest to `test/intl402/Temporal/PlainDate/prototype/withCalendar/roundtrip-from-iso8601.js`.
1 parent 480303f commit 3ceefaa

File tree

4 files changed

+2
-65
lines changed

4 files changed

+2
-65
lines changed

test/staging/Temporal/v8/plain-date-with-calendar.js renamed to test/intl402/Temporal/PlainDate/prototype/withCalendar/roundtrip-from-iso8601.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,13 @@
22
// This code is governed by the BSD license found in the LICENSE file.
33

44
/*---
5-
esid: pending
6-
description: >
7-
Automatically ported from plain-date-with-calendar test
8-
in V8's mjsunit test plain-date-with-calendar.js
5+
esid: sec-temporal.plaindate.prototype.withcalendar
6+
description: Converting from iso8601 and back works as expected.
97
includes: [temporalHelpers.js]
108
features: [Temporal]
119
---*/
1210

1311
let d1 = new Temporal.PlainDate(1911, 10, 10);
14-
let badDate = { withCalendar: d1.withCalendar };
15-
assert.throws(TypeError, () => badDate.withCalendar('iso8601'));
16-
1712
let d2 = d1.withCalendar('roc');
1813
assert.sameValue('roc', d2.calendarId);
1914
TemporalHelpers.assertPlainDate(d2, 0, 10, 'M10', 10, '', 'broc', 1);

test/staging/Temporal/v8/plain-date-equals.js

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

test/staging/Temporal/v8/plain-date-get-iso-fields.js

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

test/staging/Temporal/v8/plain-date-value-of.js

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

0 commit comments

Comments
 (0)