André Bargull
c140af3cb3
Update other test/language tests to use verifyProperty
2023-09-13 16:05:40 +02:00
André Bargull
a7ee7473b7
Use verifyProperty in language/arguments-object tests
2023-09-13 16:05:40 +02:00
André Bargull
f2275d23f4
Use verifyProperty in language/literals tests
2023-09-13 16:05:40 +02:00
André Bargull
e6f1feb04d
Use verifyProperty in language/global-code tests
2023-09-13 16:05:40 +02:00
André Bargull
8ff30c73ce
Use verifyProperty in language/eval-code tests
2023-09-13 16:05:40 +02:00
André Bargull
08a7b9d4b6
Use verifyProperty in language/expressions tests
2023-09-13 16:05:40 +02:00
André Bargull
ff81dccfc3
Use verifyProperty in language/statements tests
2023-09-13 16:05:40 +02:00
André Bargull
99096762ca
Use verifyProperty in remaining test/intl402 tests
2023-09-13 16:05:40 +02:00
André Bargull
f32dc36f3e
Use verifyProperty in test/intl402/PluralRules tests
2023-09-13 16:05:40 +02:00
André Bargull
ad3f1a6ade
Use verifyProperty in test/intl402/NumberFormat tests
2023-09-13 16:05:40 +02:00
André Bargull
fe2c17bf4b
Use verifyProperty in test/intl402/DateTimeFormat tests
2023-09-13 16:05:40 +02:00
André Bargull
967b16500a
Use verifyProperty in test/intl402/Collator tests
2023-09-13 16:05:40 +02:00
André Bargull
534decc36d
Fix typos in calls to verifyProperty
...
And update verifyProperty to catch misspelled descriptor fields.
2023-09-13 16:05:40 +02:00
André Bargull
b4f72feb52
Verify object value in addition to descriptor value in verifyProperty
2023-09-13 16:05:40 +02:00
Frank Tang
bba19d51ae
Sync Intl Locale API tests w/ PR67
...
https://github.com/tc39/proposal-intl-locale-info/pull/67
2023-09-13 16:01:07 +02:00
Nicolò Ribaudo
1bb53aee3e
Update import attributes `assert` tests to current semantics ( #3919 )
...
Co-authored-by: Jordan Harband <ljharb@gmail.com>
2023-09-13 11:35:06 +02:00
Philip Chimento
e98bfb332e
Temporal: Do away with CalculateOffsetShift in Duration.compare
2023-09-13 10:57:43 +02:00
Philip Chimento
5972c16b07
Temporal: Return early from Duration.compare if internal slots equal
2023-09-13 10:57:43 +02:00
Philip Chimento
80958c3267
Temporal: Avoid reconverting Zoned- to PlainDateTime in AddZonedDateTime
2023-09-13 10:57:43 +02:00
Philip Chimento
a74fbada42
Temporal: Don't observably iterate array in built-in calendar's fields()
...
Note the monkeypatch of getPossibleInstantsFor in test/built-ins/Temporal/
TimeZone/prototype/getInstantFor/argument-builtin-calendar-no-array-
iteration.js.
Other than that, all the tests are basically identical.
2023-09-13 10:57:43 +02:00
Philip Chimento
fdd44e2ea5
Temporal: Separate zoned and plain operations in RoundDuration
...
Adds new tests to order-of-operations.js in Duration.round and
Duration.total, to exercise the code path where previous to this normative
change, relativeTo would have been converted to PlainDate 3x and 2x,
respectively.
2023-09-13 10:57:43 +02:00
Philip Chimento
008b97932b
Temporal: Don't convert relativeTo to PlainDate twice in Duration.compare
2023-09-13 10:57:43 +02:00
Philip Chimento
0a6341de65
Temporal: Call user code on relativeTo only when necessary in RoundDuration
2023-09-13 10:57:43 +02:00
Philip Chimento
f44bbe4035
Temporal: Avoid calling user code in no-op round operations
...
This shortcut path now exists in all round(), since(), and until()
operations.
In Instant, PlainDate, PlainDateTime, and PlainTime, the change isn't
observable, so no tests could be added. This adds test coverage for
- Duration.p.round()
- PlainYearMonth.p.since()
- PlainYearMonth.p.until()
- ZonedDateTime.p.round()
- ZonedDateTime.p.since()
- ZonedDateTime.p.until()
As well as a few cases where we are testing that certain calendar methods
get called during a round operation, but previously were doing so with
options that now become a no-op and no longer call those calendar methods.
In those cases, round to 2 ns, rather than 1 ns.
2023-09-13 10:57:43 +02:00
Peter Klecha
1db9a49eb9
address comments
2023-09-08 16:31:50 -07:00
Peter Klecha
2a4c458002
Update test/built-ins/Promise/withResolvers/ctx-ctor.js
...
Co-authored-by: Linus Groh <mail@linusgroh.de>
2023-09-08 16:31:50 -07:00
Peter Klecha
998f811e58
Update test/built-ins/Promise/withResolvers/ctx-non-ctor.js
...
Co-authored-by: Ms2ger <Ms2ger@gmail.com>
2023-09-08 16:31:50 -07:00
Peter Klecha
15e0933cb5
Update test/built-ins/Promise/withResolvers/result.js
...
Co-authored-by: Jordan Harband <ljharb@gmail.com>
2023-09-08 16:31:50 -07:00
Peter Klecha
a2fb545892
Update features.txt
...
Co-authored-by: Jordan Harband <ljharb@gmail.com>
2023-09-08 16:31:50 -07:00
Peter Klecha
8f8aa971d8
Update test/built-ins/Promise/withResolvers/result.js
...
Co-authored-by: Jordan Harband <ljharb@gmail.com>
2023-09-08 16:31:50 -07:00
Peter Klecha
ab0d665192
Update test/built-ins/Promise/withResolvers/result.js
...
Co-authored-by: Jordan Harband <ljharb@gmail.com>
2023-09-08 16:31:50 -07:00
Peter Klecha
d2ac342089
include esids
2023-09-08 16:31:50 -07:00
Peter Klecha
81ba258677
add tests for Promise.withResolvers proposal
2023-09-08 16:31:50 -07:00
Philip Chimento
e04e1c1a39
Temporal: Fix front matter of Temporal/ZonedDateTime/p/round/order-of-operations.js
2023-09-08 09:38:14 -07:00
Philip Chimento
6371be8338
Temporal Helpers: Add harness tests for DST sample time zone
...
Just to make sure the time zone arithmetic matches the actual time zone
that it is based on.
2023-09-08 09:38:14 -07:00
Philip Chimento
d03ed25a21
Temporal Helpers: Refactor sample time zone tests in harness tests
...
These two can be combined into one test, since they are very similar. This
will allow testing the sample DST time zone as well, which is not yet
tested.
2023-09-08 09:38:14 -07:00
Philip Chimento
5c7f4009dc
Temporal Helpers: Avoid observable calendar ID lookup in OneShiftTimeZone
...
This toString() call would observably get the `id` property of the
plainDateTime's calendar object. Not good for the tests that I am writing
that verify observable calls!
2023-09-08 09:38:14 -07:00
Philip Chimento
d4f49b84ab
Temporal: Update outdated test descriptions
2023-09-08 09:38:14 -07:00
Philip Chimento
6c16577f34
Temporal: Remove unused variables
...
These are also leftovers from the recent refactor, I think.
2023-09-08 09:38:14 -07:00
Philip Chimento
ce92940645
Temporal: Improve various assertion messages
...
Some of these were overlooked in a recent big refactor.
2023-09-08 09:38:14 -07:00
Mathias Bynens
1a0b9d23f2
Add tests ensuring the latest Unicode Emoji standard is being followed
...
The behavior of `/\p{RGI_Emoji}/v` and other properties of strings depends on the Unicode & Emoji version being used in the JavaScript engine. This patch adds tests verifying new additions to `RGI_Emoji` for each release of the Unicode Emoji standard are correctly matched.
2023-08-28 16:31:57 +02:00
André Bargull
a8bd958193
Don't require Inflect for linting files ( #3839 )
2023-08-28 16:22:19 +02:00
André Bargull
e27c9f690c
Add DurationFormat test for negative durations
2023-08-28 16:18:47 +02:00
André Bargull
fa3581986f
Add test for numeric hours with zero minutes and non-zero seconds
2023-08-28 16:18:47 +02:00
André Bargull
c9548956f9
Test exact precision for DurationFormat
...
`Intl.DurationFormat` is currently spec'ed to use unlimited precision.
See: https://github.com/tc39/proposal-intl-duration-format/issues/157
2023-08-28 16:18:47 +02:00
André Bargull
71091f1541
Use simplified PartitionDurationFormatPattern to computed expected results
2023-08-28 16:18:47 +02:00
André Bargull
4da0b8f005
Remove test which duplicates 'style-default-en.js'
2023-08-28 16:18:47 +02:00
Jordan Harband
eb613f6891
use proper isConstructor check for recently added ArrayBuffer/SharedArrayBuffer tests
2023-08-25 15:31:27 +02:00
Michael Ficarra
9efb4f8e53
update iterator helpers tests that passed even in noncompliant impls
2023-08-24 13:09:05 -07:00
André Bargull
e273cd470a
Add tests for recursively calling IteratorHelper generators
2023-08-24 12:44:04 -07:00