André Bargull
934563c6c4
Temporal: Coverage for Temporal.Instant
2025-01-09 16:33:51 -08:00
André Bargull
fef2f1cf61
Temporal: Coverage for Temporal.PlainTime
2025-01-09 16:33:51 -08:00
André Bargull
7bc853660a
Temporal: Coverage for Temporal.PlainYearMonth
2025-01-09 16:33:51 -08:00
André Bargull
6d69685a48
Temporal: Coverage for Temporal.PlainMonthDay
2025-01-09 16:33:51 -08:00
André Bargull
122912d54b
Remove invalid test that offset time zone are unsupported
...
Fixes #4339
2025-01-08 17:18:53 -08:00
Shu-yu Guo
7f12305f59
Rename support files to end in _FIXTURE.js ( #4368 )
2025-01-08 16:30:20 -08:00
Asumu Takikawa
1d7a2938a2
Fix two minor errors for import-defer tests
...
* assert.deepEqual is used in one but without the include
* typo of assert in the other
2025-01-06 17:51:47 +01:00
Rezvan Mahdavi Hezaveh
8296db8873
[explicit-resource-management] Return undefined from dispose builtin
...
This CL fixes the bug of returning true in dispose method of
DisposableStack.
Bug: 385547086
Change-Id: Iddb72962bd5f7de1ee9346cda3094e98e0565119
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/6119280
Reviewed-by: Shu-yu Guo <syg@chromium.org>
Commit-Queue: Rezvan Mahdavi Hezaveh <rezvan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#97920}
2024-12-26 22:18:25 +01:00
André Bargull
c4317b0cb5
Ensure ToDateTimeFormattable is called for both arguments
2024-12-18 16:59:26 +01:00
Nicolò Ribaudo
f8231fcdda
Add test for @@toStringTag on deferred module namespaces ( #4360 )
...
Co-authored-by: Linus Groh <mail@linusgroh.de>
2024-12-18 15:20:07 +00:00
André Bargull
98a7f03f5c
Remove leading space characters in YAML frontmatter
...
Remove leading space characters so directly loading the frontmatter text
with `yaml.safe_load` doesn't throw an exception.
2024-12-17 17:52:36 +01:00
Nicolò Ribaudo
36687a502c
Fix the `phase` in tests about invalid JSON module bindings ( #4348 )
2024-12-17 14:56:48 +00:00
André Bargull
d7fa2a1163
Remove "US/Pacific-New" from time zone tests
...
"US/Pacific-New" was removed in tzdata2020b.
2024-12-16 14:55:12 +01:00
Philip Chimento
dc0082c5ea
Remove unused test fixtures
...
These belong to a test that is not imported.
2024-12-09 13:35:08 -08:00
Ms2ger
6ee9579acb
Import tests from SpiderMonkey
2024-12-09 13:35:08 -08:00
Michael Ficarra
71794b1388
fix another test now that we don't access the IteratorResult value
2024-12-09 12:37:30 -08:00
Michael Ficarra
fc55660965
Update fresh-iterator-result.js
...
See https://github.com/tc39/proposal-iterator-sequencing/pull/18#issuecomment-2512825730
2024-12-09 12:37:30 -08:00
Michael Ficarra
d5a09f40e4
add test that concat does not pass arg through when called with 1 arg
2024-12-09 12:37:30 -08:00
Michael Ficarra
a12abf58af
add test for primitive wrapper objects
2024-12-09 12:37:30 -08:00
André Bargull
490463d485
Add initial tests for the "iterator-sequencing" proposal
2024-12-09 12:37:30 -08:00
Nicolò Ribaudo
dad2774b2e
Add missing `from` in two `import defer` tests ( #4338 )
2024-12-07 12:42:54 +01:00
Philip Chimento
eefc5cf367
Temporal: Improve coverage of relativeto-string-limits tests
...
These tests did not fully cover Temporal.Duration.prototype.round and
Temporal.Duration.prototype.total because they called those methods on a
blank duration (all components zero), for which there is an early return
in round() and total().
This meant that we missed an assertion that would be hit after the early
return.
This makes sure to test both blank and non-blank Durations with these
relativeTo strings, and expect some strings to fail at different steps
with the two cases.
See: tc39/proposal-temporal#3015
2024-12-05 15:02:50 +01:00
Boshen
42d83277b7
Fix `single-line-html-close-first-line-*` failing with `Test262Error is not defined` ( #4333 )
...
Fix `single-line-html-close-first-line-*` failing with `Test262Error is not defined`
closes #4020
2024-12-04 11:55:40 -08:00
André Bargull
d124e1486c
Allow alternative era for Chinese calendar
...
Year 1 in the Chinese calendar corresponds to 2637 BCE in ICU4X.
See <https://docs.rs/icu/latest/icu/calendar/chinese/struct.Chinese.html#year-and-era-codes >.
2024-12-04 11:26:13 -08:00
Shu-yu Guo
dacf5ff845
Update Object.freeze tests for resizable TypedArrays
...
Object.freeze will always throw on variable-length TAs with this
has-consensus PR: https://github.com/tc39/ecma262/pull/3453
2024-12-03 17:47:38 -08:00
Tim Chevalier
901dd6e920
Temporal: Add test for balancing up to weeks when year/month are present ( #4305 )
...
See tc39/proposal-temporal#2813
2024-12-03 14:08:20 -08:00
Ben Allen
4053ff2eaf
Add tests for `Intl.PluralRules.prototype.resolvedOptions().pluralCategories` order ( #4275 )
...
Array elements should appear in following order: "zero", "one", "two", "few", "many", "other"
see https://github.com/tc39/ecma402/pull/918/
2024-12-03 13:38:58 +00:00
Nicolò Ribaudo
10c2615aa5
Add partial tests for `import defer` ( #4278 )
...
Co-authored-by: Asumu Takikawa <asumu@igalia.com>
2024-12-02 10:32:38 +01:00
graphemecluster
80d32d1a47
Add additional test cases for RegExp modifiers ( #4321 )
2024-11-28 13:37:02 +00:00
Chengzhong Wu
3499f1e646
Fix AbstractModuleSource.prototype descriptor
2024-11-26 15:09:30 +01:00
André Bargull
fd979d85d4
Fix strict mode error
2024-11-19 17:02:40 +01:00
Ben Allen
bf9f54cb9d
Test that Intl.DateTimeFormat canonicalizes the timezones "Etc/GMT", "Etc/UTC", and "GMT" to "UTC" ( #4328 )
2024-11-18 09:20:01 +00:00
Shu-yu Guo
05c45a4c43
[rab/gsab] Return false in [[PreventExtensions]] for variable-length TAs
...
This is a spec normative change: https://github.com/tc39/ecma262/pull/3453
Fixed: 374310073
Change-Id: I085260fea077bc27cf1e4f06d4389519e12c4e14
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/6014979
Commit-Queue: Shu-yu Guo <syg@chromium.org>
Auto-Submit: Shu-yu Guo <syg@chromium.org>
Commit-Queue: Rezvan Mahdavi Hezaveh <rezvan@chromium.org>
Reviewed-by: Rezvan Mahdavi Hezaveh <rezvan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#97166}
2024-11-13 22:22:11 +01:00
rmg-x
8eee4552a7
Fix the not-a-constructor test for Math.f16round()
...
Previously, this was using Math.fround() instead of the f16 version.
2024-11-12 15:36:48 +01:00
Philip Chimento
9a0aa4c719
regexp-generator: Fix indentation
...
Our config files specify two-space indents for JS files. These scripts
were probably written before that was a thing. Update the indentation of
the script and the generated tests all in one go.
2024-11-11 17:26:56 -08:00
Philip Chimento
7e1f1e749d
regexp-generator: Update ECMA-262 quote in header
...
While we're touching this we may as well update the quote from ECMA-262 to
match what it currently says.
2024-11-11 17:26:56 -08:00
Philip Chimento
031ed02ad1
regexp-generator: Update front matter
...
Add the `generated` flag, and update the link to the generator script.
2024-11-11 17:26:56 -08:00
Philip Chimento
07ddc3b41b
regexp-generator: Implement downstream changes
...
The optimizations from commit e558b29b
were never incorporated into the
upstream test generator. This does so now.
As far as I can tell, the changes to the Unicode ranges are purely
cosmetic. Some are formatted as 6-digit hex numbers instead of 4-digit.
Others move the low-surrogates range 0xDC00-0xDCFF to the beginning of the
array, but the union of the ranges is still the same.
2024-11-11 17:26:56 -08:00
Philip Chimento
80c49657d3
Temporal: Fix name of constructor
...
I mistakenly committed something slightly different in my code review
suggestion than what I had modified locally.
2024-11-08 11:18:43 +01:00
Tim Chevalier
1128b6fcd2
Temporal: Add test case for rounding up to a non-24-hour ZonedDateTime
2024-11-07 14:13:27 -08:00
Tim Chevalier
81df127d54
Temporal: Add test case for rounding Duration relative to a ZonedDateTime ( #4306 )
...
This is the test for the change in tc39/proposal-temporal#3036 and is a variation of the test from tc39/proposal-temporal#2814 .
2024-11-07 12:22:28 -08:00
André Bargull
26a396da14
Add test coverage for Date.prototype.toTemporalInstant
2024-11-07 11:45:32 +01:00
Ioanna M Dimitriou H
437f9a7631
Migrate staging tests for JSON-parse-with-source ( #4265 )
...
Co-authored-by: Philip Chimento <pchimento@igalia.com>
Co-authored-by: Ms2ger <Ms2ger@igalia.com>
2024-11-06 16:59:30 +01:00
Tim Chevalier
b2809feedf
Temporal: Add test for Duration/p/toString() with total time units out of range ( #4313 )
2024-11-06 16:47:58 +01:00
Jordan Harband
38d52c9a60
`Error.isError`: fix remaining issues from #4304
...
Fixes #4304
2024-11-06 13:05:41 +01:00
Jordan Harband
a2f43d68d4
Error.isError: Fix test bugs ( #4308 )
2024-11-05 11:17:39 -05:00
Tim Chevalier
ab69bd4dd8
Temporal: Add test for date with offset transition ( #4301 )
...
Co-authored-by: Philip Chimento <philip.chimento@gmail.com>
2024-11-01 13:43:05 -07:00
Tim Chevalier
01eb47d4f2
Add tests for adding negative durations to/subtracting durations from the last representable year/month of the ISO calendar
...
See https://github.com/tc39/proposal-temporal/issues/3029
2024-11-01 12:57:28 -07:00
Tim Chevalier
45f352d37b
Temporal: Add test for setting minimum valid year-month with non-ISO8601 calendar ( #2998 ) ( #4300 )
2024-11-01 11:14:22 -07:00
Tim Chevalier
b7822bb0b8
Temporal: Move tests for ZonedDateTime/p/{since, until} out of staging ( #4293 )
...
Co-authored-by: Philip Chimento <philip.chimento@gmail.com>
2024-11-01 11:02:32 -07:00
Tim Chevalier
ccf8977b1c
Temporal: Split up ZonedDateTime/old/string-parsing.js and move out of staging
2024-10-31 16:05:30 -07:00
Tim Chevalier
8cc0560713
Temporal: Move all tests out of ZonedDateTime/old/with.js under staging into separate files under test/built-ins ( #4297 )
...
Co-authored-by: Philip Chimento <philip.chimento@gmail.com>
2024-10-31 13:34:57 -07:00
Tim Chevalier
0f6b269400
Temporal: Move ZonedDateTime order-of-operations tests out of staging
2024-10-31 13:13:20 -07:00
Tim Chevalier
bf46ed66b6
Temporal: move tests for ZonedDateTime/p/{toInstant, toPlainDate, toPlainTime, toString}
2024-10-31 13:08:38 -07:00
Tim Chevalier
7a4426e2b2
Temporal: Move remaining tests from Temporal/ZonedDateTime/old under staging into separate files under test/built-ins
...
Includes withPlainDateTime and withTimeZone
2024-10-31 11:58:25 -07:00
Ben Allen
38d2924fb6
402: Replace currency-digits.js Intl.NumberFormat test ( #4285 )
...
ISO 4217 no longer normative for currency minor digits. New test verifies that
currency data (from whatever source) is used by verifying that `maximumFractionDigits` and `minimumFractionDigits`
are identical. See https://github.com/tc39/ecma402/pull/922
2024-10-31 11:39:44 -07:00
Tim Chevalier
de68177f59
Temporal: Move ZonedDateTime/prototype/round tests and one other ZonedDateTime test out of staging
2024-10-30 17:58:43 -07:00
Tim Chevalier
70ef1acd1c
Fix test for required properties
2024-10-30 17:18:26 -07:00
Tim Chevalier
7fb465496f
Feedback from code review
2024-10-30 17:18:26 -07:00
Tim Chevalier
d2d84950c3
Update test/built-ins/Temporal/ZonedDateTime/from/argument-propertybag-invalid-offset-string.js
...
Co-authored-by: Philip Chimento <philip.chimento@gmail.com>
2024-10-30 17:18:26 -07:00
Tim Chevalier
a93fe76f52
Temporal: Move ZonedDateTime property bag tests out of staging
2024-10-30 17:18:26 -07:00
Tim Chevalier
87344d96f2
Feedback from code review
2024-10-30 17:03:46 -07:00
Tim Chevalier
bfb957f669
Temporal: Move more ZonedDateTime tests out of staging
2024-10-30 17:03:46 -07:00
Tim Chevalier
5505758111
Temporal: Fix Temporal/Duration/p/round tests ( #4299 )
2024-10-30 16:45:28 -07:00
Tim Chevalier
85934bf49c
Temporal: Move tests for ZonedDateTime/p/{add, subtract} out of staging into test/built-ins ( #4287 )
2024-10-30 16:20:09 -07:00
Ben Allen
febf246e05
DurationFormat: Add tests for durations with large hour/minute/second unit values while using digital style
...
Grouping separators suppressed in this situation. See tc39/proposal-intl-duration-format/pull/198
2024-10-30 16:07:46 -07:00
Tim Chevalier
01dbd4db41
Temporal: Move tests for ZonedDateTime/compare out of staging into test/built-ins
2024-10-30 15:58:23 -07:00
Ben Allen
455cfa5a66
Add tests to `Intl.DateTimeFormat` and `Intl.RelativeTimeFormat` for various numbering systems ( #4276 )
...
* Add tests to `Intl.DateTimeFormat` and `Intl.RelativeTimeFormat` for formatting in various numbering systems
* fixup! Add tests to `Intl.DateTimeFormat` and `Intl.RelativeTimeFormat` for formatting in various numbering systems
2024-10-30 15:03:44 -07:00
Ben Allen
153db6ce33
Intl.NumberFormat Add tests for `Intl.NumberFormat` when using "currency" style and "compact", "engineering", and "scientific" notations.
...
Related PR: https://github.com/tc39/ecma402/pull/925
2024-10-30 14:51:34 -07:00
Tim Chevalier
3f2486e37f
Move all tests from staging/Temporal/Instant/old to test/built-ins/Temporal/Instant ( #4282 )
...
* Temporal: Move all tests from staging/Temporal/Instant/old to test/built-ins/Temporal/instant
2024-10-30 14:29:02 -07:00
Tim Chevalier
f178db57fe
Temporal: Move all tests out of total.js under staging into separate files under test/built-ins ( #4281 )
...
* Temporal: Move most tests out of total.js under staging into separate files under test/built-ins
Co-authored-by: Philip Chimento <philip.chimento@gmail.com>
2024-10-30 11:44:59 -07:00
Tim Chevalier
713ddf66e0
Temporal: Move some tests out of round.js under staging into separate files under test/built-ins ( #4280 )
...
Co-authored-by: Philip Chimento <philip.chimento@gmail.com>
2024-10-30 11:32:37 -07:00
Théo LUDWIG
01776c30d3
test(top-level-await): move out of staging module graphs hanging
2024-10-29 19:35:56 +01:00
André Bargull
5b1757743a
Update expected formatting for CLDR 46
2024-10-29 12:10:47 +01:00
Tim Chevalier
b8c29a05b5
Temporal: Move tests out of staging/Temporal/Duration/old and into test/built-ins
2024-10-28 12:41:47 -07:00
Chengzhong Wu
3f0a24f4f6
[source-phase-imports] update missing source error type
2024-10-25 11:37:04 +02:00
_Kerman
0add42b556
fix: heritage-arrow-function.js ( #4273 )
2024-10-21 15:54:30 +02:00
Jordan Harband
0645461999
add missing Error.isError feature flag
...
See https://github.com/tc39/test262/pull/4266#issuecomment-2419000590
2024-10-17 10:57:45 -07:00
Jordan Harband
4b17ad3f3d
add `Error.isError` tests
...
See https://github.com/tc39/proposal-is-error/issues/7
2024-10-15 11:12:39 -07:00
Ioanna M. Dimitriou H
3cacf7d85e
Fix CI linting errors
2024-10-15 10:32:14 -07:00
Ioanna M. Dimitriou H
51d86807fe
Address review comments
2024-10-15 10:32:14 -07:00
Ioanna M. Dimitriou H
3f8d416bf5
same for isRawJSON's property descriptor test file
2024-10-15 10:32:14 -07:00
Ioanna M. Dimitriou H
d103a39e52
Updated placement of tests in rawJSON test files, previous older version was added accidentally.
2024-10-15 10:32:14 -07:00
Ioanna M. Dimitriou H
954d1809f8
Boilerplate tests for rawJSON and isRawJSON
...
from the proposal json-parse-with-source
2024-10-15 10:32:14 -07:00
André Bargull
df910721ba
Update time zone mapping for CLDR46 / tzdata 2024b
2024-10-14 11:21:25 -07:00
André Bargull
9b3d9d9700
Update built-ins/Date to verifyProperty
2024-10-14 08:55:14 -07:00
André Bargull
d1c2a6f139
Update built-ins/Date/prototype/getXXX to verifyProperty
2024-10-14 08:55:14 -07:00
André Bargull
800d2190b3
Update built-ins/Date/prototype/setXXX to verifyProperty
2024-10-14 08:55:14 -07:00
Meghan Denny
60963bf468
chore: convert many tests to use verifyProperty ( #4263 )
...
Co-authored-by: André Bargull <andre.bargull@gmail.com>
2024-10-14 11:25:05 +02:00
Peter Hoddie
83fae7f1f2
a few tests use verifyPrimordialProperty
2024-10-11 12:45:30 -07:00
André Bargull
92b592547d
Ensure NaN time values are correctly handled in various Date setters
...
Related PR: https://github.com/tc39/ecma262/pull/2136
2024-10-11 12:19:13 -07:00
Richard Gibson
5ae7de9942
Increase coverage of String.prototype.replace $xy replacement patterns ( #3931 )
...
* $xy is a valid capture index
* $xy is not a valid capture index but $x is
* neither $xy nor $x is a valid capture index
2024-10-10 14:08:45 +02:00
tannal
954d6370f9
Avoid using destructuring in tco-fn-realm.js
2024-10-09 19:52:05 -07:00
André Bargull
ab809f8f0c
Update tests for "Limit valid values for DurationFormats to match upcoming limits in Temporal"
...
Update tests for
<https://github.com/tc39/proposal-intl-duration-format/pull/173 >.
2024-10-09 19:43:12 -07:00
Chengzhong Wu
0596ff6981
[source-phase-imports] Dynamic import source call
...
Add source phase import support in import calls with necessary
embedder APIs. When a imported module does not support source phase
representation, a ReferenceError is thrown in d8.
Bug: 42204365
Change-Id: If40cadfcdf0a547f24d20c67149bba559480341d
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5878343
Commit-Queue: Chengzhong Wu (legendecas) <legendecas@gmail.com>
Reviewed-by: Shu-yu Guo <syg@chromium.org>
Cr-Commit-Position: refs/heads/main@{#96473}
2024-10-09 08:18:20 +02:00
Rezvan Mahdavi Hezaveh
6c967a8bbb
Remove extra `.js` from file name
2024-10-07 10:58:18 -07:00
Philip Chimento
e2f2f92486
Temporal: Add tests for formatting with no overlap between DTF options and Temporal object
...
See tc39/proposal-temporal#2795 . When attempting to format a Temporal
object, if the DateTimeFormat has options that do not overlap with the
data model of the Temporal object, toLocaleString() and format() are
supposed to throw a TypeError.
2024-10-07 12:02:45 +02:00
Philip Chimento
eb848bb553
Temporal: Remove incorrect toLocaleString tests
...
These staging tests are incorrect. See tc39/proposal-temporal#2795 . This
was an unintended behaviour. It differed from the behaviour for dateStyle
and timeStyle, which was the intended behaviour.
2024-10-07 12:02:45 +02:00
Philip Chimento
573234fe7b
Temporal: Add tests for toLocaleString with no options
...
For each Temporal object, add tests for what components are present by
default if no options for date or time components are passed.
2024-10-07 12:02:45 +02:00
Philip Chimento
9e6ab9bb02
Temporal: Add coverage for formatting each Temporal object with only one component
...
Adds a test for each Temporal object's toLocaleString() method, formatting
them with only one option e.g. { year: 'numeric' } and comparing it with
the corresponding output for legacy Date.
See tc39/proposal-temporal#2796 .
2024-10-07 12:02:45 +02:00