Jesse Alama
fc93996080
Intl Era Monthcode: Date addition tests for islamic calendars
...
Co-Authored-By: Philip Chimento <pchimento@igalia.com>
2025-11-11 16:08:22 +01:00
Ben Allen
90889d25cb
Intl Era Monthcode: Date addition tests for hebrew calendar
...
Co-Authored-By: Jesse Alama <jesse@igalia.com>
Co-Authored-By: Philip Chimento <pchimento@igalia.com>
2025-11-11 16:08:22 +01:00
Ben Allen
c6789f4d50
Intl Era Monthcode: Date addition tests for chinese and dangi calendars
...
Co-Authored-By: Jesse Alama <jesse@igalia.com>
Co-Authored-By: Philip Chimento <pchimento@igalia.com>
2025-11-11 16:08:22 +01:00
Ron Buckton
fd594a077a
Fix invalid async test for await-using syntax
2025-11-10 10:39:59 -08:00
André Bargull
55e4c18a69
Replace "closed" global variable in Math.sumPrecise test
...
This allows running the test in browsers, too.
<https://developer.mozilla.org/en-US/docs/Web/API/Window/closed >.
2025-11-10 09:41:50 -08:00
Olivier Flückiger
29860b3e42
[explicit-resource-management] Fix typo in using-for-using-of-of
2025-11-10 09:37:07 -08:00
Frank Yung-Fong Tang
80d1f6dc89
Add 8 numberingSystems to test for Unicode 16 ( #4560 )
...
* Add 8 numberingSystems to test
see also https://github.com/tc39/ecma402/pull/929
2025-11-07 11:54:12 -08:00
Frank Yung-Fong Tang
beeffaf9f0
Sync test to https://github.com/tc39/proposal-intl-locale-info/pull/99
...
https://github.com/tc39/test262/pull/4417
2025-11-07 11:49:01 -08:00
Philip Chimento
f64d12fba5
Revert "Allow alternative era for Chinese calendar"
...
This reverts commit d124e1486c007a737411ea7110458e93680b7953 (#4309 ).
The Intl Era Monthcode proposal precludes this alternative era for the
Chinese calendar, so implementations that have it should not pass the
test.
2025-11-07 11:23:49 -08:00
Huáng Jùnliàng
2a1c3241a6
Mark using within default clause as negative
2025-11-07 11:09:33 -08:00
Ben Allen
dbb186bb07
Added Intl.Era-monthcode to features ( #4617 )
...
* Added Intl.Era-monthcode to features for some non-iso8601-related Temporal calendar tests
2025-11-07 11:03:43 -08:00
Philip Chimento
f1433632af
Temporal: Improve check for U+202F NARROW NO-BREAK SPACE in i10n formats ( #4641 )
2025-11-06 20:07:37 -05:00
Philip Chimento
5c07b52242
Temporal: Remove accidental octal literals from a test
...
These cause the test to fail in strict mode.
2025-11-06 11:32:55 +01:00
Tim Chevalier
ac3035f0d1
Add link to GitHub discussion
2025-11-05 15:42:18 -08:00
Tim Chevalier
df37207881
Temporal: Add test for CalendarYearMonthFromFields with Japanese dates
...
Japanese eras can begin in the middle of a month. This adds tests for
the existing behavior, which is that PlainYearMonth.from returns
a PlainYearMonth with an era matching the first day of the month,
even when that conflicts with the era given by the argument.
See https://github.com/tc39/proposal-temporal/issues/3150 for more details.
2025-11-05 15:42:18 -08:00
Ben Allen
a723c6ef96
Added test for Islamic calendar fallbacks [intl-era-monthcode] ( #4627 )
...
* New tests for islamic and islamic-rgsa calendar fallbacks with feature: Intl.Era-monthcode
2025-11-05 14:12:46 -08:00
Tim Chevalier
aa62607560
Fix indentation
2025-11-04 12:52:31 -08:00
Tim Chevalier
67ccaf966a
Avoid creating extra objects
2025-11-04 12:52:31 -08:00
Tim Chevalier
88c06fe752
Update test/built-ins/Temporal/Instant/prototype/toString/negative-instant-rounding.js
...
Co-authored-by: Ms2ger <Ms2ger@gmail.com>
2025-11-04 12:52:31 -08:00
Tim Chevalier
d50ce09c59
Fix lint errors
2025-11-04 12:52:31 -08:00
Tim Chevalier
f1828f3ebf
Add tests that trigger the same bug from Instant.toString and ZonedDateTime.toString
2025-11-04 12:52:31 -08:00
Tim Chevalier
ef55820458
Add tests for PlainDateTime and ZonedDateTime as well
2025-11-04 12:52:31 -08:00
Tim Chevalier
4d9f01fcf4
Temporal: Add a test for rounding negative instants
2025-11-04 12:52:31 -08:00
Ron Buckton
134a8eafba
[explicit-resource-management] Add remaining tests specific to await using statement syntax ( #4481 )
...
* Add remaining tests specific to await-using statement syntax
* PR feedback and minor fixes due to banning 'await using' in switch case/default
* Additional updates
* Fix comment formatting
* Fix esid
* Fix test implementation
* Fix error type in test
2025-11-04 09:04:25 -08:00
Ron Buckton
b56fb90b56
[explicit-resource-management] Add remaining tests specific to using statement syntax ( #4483 )
...
* Add remaining tests specific to using statement syntax
* Fix incorrect test, esid
* Add 'for(using of=' test
* PR feedback and minor fixes due to banning 'using' in switch case/default
* Fix spacing around esid
* Fix test implementation
* Fix error type in test
2025-11-04 08:59:03 -08:00
jugglinmike
8160fe087a
Merge pull request #4599 from bocoup/web-features-init
...
Add WEB_FEATURES.yml
2025-11-03 16:39:49 -05:00
jugglinmike
c61bcf856f
Merge branch 'main' into web-features-init
2025-11-03 16:26:11 -05:00
Philip Chimento
7b3764f570
Fix Python warning in linter
...
Noticed while looking at the linter output.
2025-11-03 11:38:21 +01:00
Philip Chimento
421eebef85
Temporal: Add V8's old Temporal tests to staging
...
V8 is discarding these tests (which were stale and have not been run for
quite a while) and instead relying on test262 for coverage. I converted
them to test262 format, deleted ones that no longer applied, and removed
Calendar and TimeZone objects from them.
They can live in staging until we figure out whether there's anything
here that isn't already covered in the main tree.
See https://chromium-review.googlesource.com/c/v8/v8/+/7100673
2025-11-03 11:38:21 +01:00
Philip Chimento
6600ea1042
Temporal: Add coverage for another large-subseconds addition bug
...
Bug observed in the proposal-temporal reference code, caused by improper
implementation of AddTime
(https://tc39.es/proposal-temporal/#sec-temporal-addtime ) where the
advice in Step 2 was not followed correctly.
See https://github.com/tc39/proposal-temporal/pull/3173
2025-11-03 11:35:50 +01:00
Philip Chimento
d8c989cc8a
Temporal: Consolidate "large-subseconds" and "large-milliseconds" tests
...
These (from #4619 and #4625 ) are very similar and I'm also going to add
more cases to them in the next commit.
Also add similar tests to Instant and PlainTime.
2025-11-03 11:35:50 +01:00
Philip Chimento
a9251b7718
Temporal: Add tests for internal representation of Duration
...
The spec describes the internal representation of Duration as float64-
representable integers. There are a few tricky ways that it is
observable if an implementation does not do this correctly. Here are
some tests for them.
2025-11-03 10:30:08 +01:00
Ben Allen
99aa2c22ec
Add test to verify era aliases for non-gregorian calendars ( #4631 )
2025-11-03 09:17:23 +00:00
Ben Allen
9adf3c0c2f
Added Intl.Era-monthcode test verifying all calendars supported ( #4626 )
...
* Added test verifying all calendars required by Intl.Era-monthcode are supported.
2025-10-31 13:43:53 -07:00
Tim Chevalier
66bf8b8b52
Temporal: Add coverage for adding durations with large subsecond values to a PlainTime ( #4625 )
...
* Temporal: Add coverage for adding durations with large subsecond values to a PlainTime
* Add tests for PlainDateTime and ZonedDateTime
2025-10-31 13:36:32 -07:00
Tim Chevalier
678c434dab
Temporal: Add tests for correct rounding of epoch milliseconds in toString()
2025-10-31 11:36:50 +01:00
Philip Chimento
18f6ed2627
Add missing quotation mark in assertion message
2025-10-30 17:51:51 +01:00
Philip Chimento
0e496d5808
Minor updates to text in Temporal calendar-wrong-type tests
...
These were missed in https://github.com/tc39/test262/pull/4415
2025-10-30 17:51:51 +01:00
Philip Chimento
85ae4c0966
Temporal: Add tests for optional properties in property bags
...
These tests confirm that Temporal-object-like property bags have the
correct default values for their optional properties.
This provides coverage for a V8 bug:
https://issues.chromium.org/issues/446728405
2025-10-30 17:40:54 +01:00
Philip Chimento
e72321987e
Temporal: Add tests for serialization of durations with pairs of units
...
These check that durations with large and small units are properly
serialized.
2025-10-30 16:27:33 +01:00
Tim Chevalier
61d0eb9167
Temporal: Add an overflow test for date addition with maximum year ( #4618 )
...
* Temporal: Add an overflow test for date addition with maximum year
* Add tests for other cases
* Fix minimum dates
* Add cases for adding/subtracting the negated duration to the opposite end of the allowed years
2025-10-29 18:04:05 -07:00
Tim Chevalier
759fe87f1c
Temporal: Add coverage for adding large microseconds/nanoseconds values
...
Add coverage for adding unbalanced durations with large microseconds
or nanoseconds values to a PlainDateTime or ZonedDateTime.
2025-10-29 17:30:09 -07:00
Duncan MacGregor
c588df6367
Add coverage for Object.assign with an array target ( #4603 )
2025-10-29 16:06:50 -04:00
Ben Allen
e5996f8947
Add Intl.Era-monthcode to features.txt
2025-10-29 12:21:30 -07:00
duncan.macgregor
15ab1bd12f
Fix and tighten up cross realm %ThrowTypeError% test.
2025-10-29 08:41:22 -07:00
André Bargull
e7ddbfac99
Add test for trailing garbage handling in setFromBase64 ( #4605 )
2025-10-29 15:38:05 +00:00
Nicolò Ribaudo
ccf301650f
Test a module depending on a non-root node of an async cycle ( #4465 )
2025-10-28 16:21:27 +00:00
Nicolò Ribaudo
d2940bdbb0
Test that resetting [[ModuleAsyncEvaluationCount]] is unobserbable
2025-10-17 17:47:48 +02:00
Mike Pennisi
55e079cb1e
Classify previously-omitted web features
...
These were not included due to an oversight in the web-features project
which has since been corrected:
https://github.com/web-platform-dx/web-features/pull/3434
2025-10-15 21:52:13 -04:00
Mike Pennisi
ba951e4bda
Add documentation
2025-10-15 19:48:58 -04:00