Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temporal: Remove tests for part of the approved slate of removals #4108

Merged
merged 5 commits into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 0 additions & 2 deletions test/built-ins/Temporal/Instant/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ features: [Temporal]

const bigIntInstant = new Temporal.Instant(217175010123456789n);
assert(bigIntInstant instanceof Temporal.Instant, "BigInt instanceof");
assert.sameValue(bigIntInstant.epochSeconds, 217175010, "BigInt epochSeconds");
assert.sameValue(bigIntInstant.epochMilliseconds, 217175010123, "BigInt epochMilliseconds");

const stringInstant = new Temporal.Instant("217175010123456789");
assert(stringInstant instanceof Temporal.Instant, "String instanceof");
assert.sameValue(stringInstant.epochSeconds, 217175010, "String epochSeconds");
assert.sameValue(stringInstant.epochMilliseconds, 217175010123, "String epochMilliseconds");

assert.throws(SyntaxError, () => new Temporal.Instant("abc123"), "invalid BigInt syntax");
14 changes: 0 additions & 14 deletions test/built-ins/Temporal/Instant/fromEpochMicroseconds/basic.js

This file was deleted.

This file was deleted.

25 changes: 0 additions & 25 deletions test/built-ins/Temporal/Instant/fromEpochMicroseconds/length.js

This file was deleted.

23 changes: 0 additions & 23 deletions test/built-ins/Temporal/Instant/fromEpochMicroseconds/name.js

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

14 changes: 0 additions & 14 deletions test/built-ins/Temporal/Instant/fromEpochSeconds/basic.js

This file was deleted.

30 changes: 0 additions & 30 deletions test/built-ins/Temporal/Instant/fromEpochSeconds/builtin.js

This file was deleted.

25 changes: 0 additions & 25 deletions test/built-ins/Temporal/Instant/fromEpochSeconds/length.js

This file was deleted.

23 changes: 0 additions & 23 deletions test/built-ins/Temporal/Instant/fromEpochSeconds/name.js

This file was deleted.

This file was deleted.

21 changes: 0 additions & 21 deletions test/built-ins/Temporal/Instant/fromEpochSeconds/prop-desc.js

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ description: A string is parsed into the correct object when passed as the argum
features: [Temporal]
---*/

const instance = Temporal.Instant.fromEpochSeconds(10);
const instance = Temporal.Instant.fromEpochMilliseconds(10_000);
const result = instance.add("PT3H");
assert.sameValue(result.epochNanoseconds, 10_810_000_000_000n, "epochNanoseconds result");
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ features: [Temporal]

const fields = ["hours", "minutes", "seconds", "milliseconds", "microseconds", "nanoseconds"];

const instance = Temporal.Instant.fromEpochSeconds(10);
const instance = Temporal.Instant.fromEpochMilliseconds(10_000);

fields.forEach((field) => {
assert.throws(RangeError, () => instance.add({ [field]: Infinity }));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ features: [Temporal]

const fields = ["hours", "minutes", "seconds", "milliseconds", "microseconds", "nanoseconds"];

const instance = Temporal.Instant.fromEpochSeconds(10);
const instance = Temporal.Instant.fromEpochMilliseconds(10_000);

fields.forEach((field) => {
assert.throws(RangeError, () => instance.add({ [field]: -Infinity }));
Expand Down

This file was deleted.

This file was deleted.

Loading
Loading