Skip to content

Commit ebd9c48

Browse files
committed
[Temporal] Remove v8 staging tests plain-date-time-to-plain-*
One test in `test/staging/Temporal/v8/plain-date-time-to-plain-date.js` is covered by `test/built-ins/Temporal/PlainDateTime/prototype/toPlainDate/branding.js`. Move other one to `test/built-ins/Temporal/PlainDateTime/prototype/toPlainDate/basic.js`. The tests in `test/staging/Temporal/v8/plain-date-time-to-plain-time.js` are covered by tests in - `test/built-ins/Temporal/PlainDateTime/prototype/toPlainTime/basic.js` - `test/built-ins/Temporal/PlainDateTime/prototype/toPlainTime/branding.js`
1 parent bd661b4 commit ebd9c48

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

test/staging/Temporal/v8/plain-date-time-to-plain-date.js renamed to test/built-ins/Temporal/PlainDateTime/prototype/toPlainDate/basic.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,11 @@
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-time-to-plain-date test
8-
in V8's mjsunit test plain-date-time-to-plain-date.js
5+
esid: sec-temporal.plaindatetime.prototype.withplaindate
6+
description: basic tests for toPlainDate
97
includes: [temporalHelpers.js]
108
features: [Temporal]
119
---*/
1210

1311
let d1 = new Temporal.PlainDateTime(2021, 12, 11, 1, 2, 3, 4, 5, 6);
14-
let badDateTime = { toPlainDate: d1.toPlainDate };
15-
assert.throws(TypeError, () => badDateTime.toPlainDate());
1612
TemporalHelpers.assertPlainDate(d1.toPlainDate(), 2021, 12, 'M12', 11);

test/staging/Temporal/v8/plain-date-time-to-plain-time.js

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

0 commit comments

Comments
 (0)