Skip to content

Commit 14ff79d

Browse files
committed
[Temporal] move v8 staging test plain-date-time-get-iso-fields.js
Some tests in `test/staging/Temporal/v8/plain-date-time-get-iso-fields.js` are covered by - `test/built-ins/Temporal/PlainDateTime/argument-convert.js` - `test/built-ins/Temporal/PlainDateTime/missing-arguments.js` Move the rest to `test/built-ins/Temporal/PlainDateTime/basic.js`
1 parent adf2b09 commit 14ff79d

File tree

1 file changed

+2
-9
lines changed
  • test/built-ins/Temporal/PlainDateTime

1 file changed

+2
-9
lines changed

test/staging/Temporal/v8/plain-date-time-get-iso-fields.js renamed to test/built-ins/Temporal/PlainDateTime/basic.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
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-get-iso-fields test
8-
in V8's mjsunit test plain-date-time-get-iso-fields.js
5+
esid: sec-temporal.plaindatetime.constructor
6+
description: basic tests for the PlainDateTime constructor
97
includes: [temporalHelpers.js]
108
features: [Temporal]
119
---*/
@@ -17,10 +15,5 @@ TemporalHelpers.assertPlainDateTime(new Temporal.PlainDateTime(1, 2, 3, 4, 5, 6)
1715
TemporalHelpers.assertPlainDateTime(new Temporal.PlainDateTime(1, 2, 3, 4, 5), 1, 2, 'M02', 3, 4, 5, 0, 0, 0, 0);
1816
TemporalHelpers.assertPlainDateTime(new Temporal.PlainDateTime(1, 2, 3, 4), 1, 2, 'M02', 3, 4, 0, 0, 0, 0, 0);
1917
TemporalHelpers.assertPlainDateTime(new Temporal.PlainDateTime(1, 2, 3), 1, 2, 'M02', 3, 0, 0, 0, 0, 0, 0);
20-
assert.throws(RangeError, () => new Temporal.PlainDateTime(1, 2));
21-
assert.throws(RangeError, () => new Temporal.PlainDateTime(1));
22-
assert.throws(RangeError, () => new Temporal.PlainDateTime());
2318
TemporalHelpers.assertPlainDateTime(new Temporal.PlainDateTime(-25406, 1, 1), -25406, 1, 'M01', 1, 0, 0, 0, 0, 0, 0);
2419
TemporalHelpers.assertPlainDateTime(new Temporal.PlainDateTime(29345, 12, 31, 23, 59, 59, 999, 999, 999), 29345, 12, 'M12', 31, 23, 59, 59, 999, 999, 999);
25-
TemporalHelpers.assertPlainDateTime(new Temporal.PlainDateTime(false, true, true, undefined, true), 0, 1, 'M01', 1, 0, 1, 0, 0, 0, 0, 0);
26-
TemporalHelpers.assertPlainDateTime(new Temporal.PlainDateTime(11.9, 12.8, 13.7, 14.6, 15.5, 16.6, 17.7, 18.8, 1.999999), 11, 12, 'M12', 13, 14, 15, 16, 17, 18, 1);

0 commit comments

Comments
 (0)