Commit Graph

6662 Commits

Author SHA1 Message Date
Ioanna M. Dimitriou H 435a89b702 Address review comments and fixes some more descriptions
- Fixes to two tests testing Map.prototype.size
- Description fixes
2024-07-29 16:31:26 -07:00
Ron Buckton cb8324fdba Adds [is/not]-a-constructor.js tests from @rbuckton's PR #3866
to make reviewing easier.
2024-07-29 16:31:26 -07:00
Ron Buckton c916d81d85 Adds .length property descriptor tests for explicit resource management
These are all the length.js tests from @rbuckton's PR #3866 to make reviewing easier.
2024-07-29 16:31:26 -07:00
Ron Buckton 59657217f1 Adds .name property descriptor tests for explicit resource management
These are all the name.js tests from @rbuckton's PR #3866 to make reviewing easier.
2024-07-29 16:31:26 -07:00
Ioanna M. Dimitriou H 8996664a42 Added expected esid's 2024-07-29 16:31:26 -07:00
Ron Buckton 3a615a0c0e Adds property descriptor tests for explicit resource management objects
These are all the prop-desc.js tests from @rbuckton's PR #3866 to make reviewing easier.
2024-07-29 16:31:26 -07:00
Philip Chimento 3b89be9c5d Temporal: Fix Japanese era test
This mistakenly used a previous name for the helper function. Also adds
a couple of debugging messages.
2024-07-29 14:17:24 +02:00
Ioanna M Dimitriou H 242f6f98f0
RAB: Integrate staging tests for the .map method (#4155)
* Import relevant files from #3888

* Removing parts in resizableArrayBufferUtils.js and adding it in includes,
while adjusting usage of CollectValuesAndResize and applying review changes
from PRs for previously tested methods.

* Apply suggestions from code review
2024-07-25 16:04:41 -07:00
André Bargull 7f81bb2126 Allow canonical era codes for Japanese era test 2024-07-25 11:59:15 -07:00
André Bargull a238ad6a1e Move test for dates before start of the Japanese era into a new file
See also <https://github.com/tc39/proposal-temporal/issues/2865>
requesting for more information how this case should actually be
handled.
2024-07-25 11:59:15 -07:00
André Bargull dcaed0523c Allow implementation-defined behaviour for constraining leap months 2024-07-25 11:46:15 -07:00
Paul Bakker e7d9c0d698 Follow-up to #4165
Added catch to achieve the entire goal of the previous PR to prevent the
harness from loading if 'class' syntax isn't supported
2024-07-25 09:29:40 -07:00
Ioanna M Dimitriou H 18ebac8122
RAB: Integrate staging tests for the .reverse method (#4160)
* Import relevant files from #3888

* Removing parts in resizableArrayBufferUtils.js and adding it in includes,
while adjusting usage of CollectValuesAndResize and applying review changes
from PRs for previously tested methods.
2024-07-24 16:55:16 -07:00
Ioanna M Dimitriou H 1dd1b91d14
RAB: Integrate staging tests for the .reduceRight method (#4157)
* Import relevant files from #3888

* Removing parts in resizableArrayBufferUtils.js and adding it in includes,
while adjusting usage of CollectValuesAndResize and applying review changes
from PRs for previously tested methods.

* Added missing 'shrink' test for Array.prototype.reduceRight
2024-07-24 16:39:27 -07:00
Frank Tang 12416e0fa9 Add tests for DurationFormat PR 172 and 167
Test the order of resolvedOptions in default setting
Also add test to check the reading order of options based on the
property returned in the default setting resolvedOptions.

https://github.com/tc39/proposal-intl-duration-format/pull/167
https://github.com/tc39/proposal-intl-duration-format/pull/172
https://tc39.es/proposal-intl-duration-format/#sec-Intl.DurationFormat.prototype.resolvedOptions

These two PRs are presenting to TC39 2023-09 meeting

Swap actual/expected order

Update test/intl402/DurationFormat/constructor-option-read-order.js

Co-authored-by: André Bargull <andre.bargull@gmail.com>

Fix per anba suggestion
2024-07-24 15:47:38 -07:00
Paul Bakker 79df6ec2e1 Make resizableArrayBufferUtils not depend on syntax that may not be
supported
2024-07-24 12:52:18 -07:00
Paul Bakker b6c2f55954 Remove unneeded /u flag within harness/nativeFunctionMatcher 2024-07-24 10:46:30 -07:00
Philip Chimento 50b023e6c9
Fix syntax error from #4164 (#4167)
* Fix syntax error from #4164

Function statements require a name.

See #4166

* Apply suggestions from code review

Co-authored-by: Jordan Harband <ljharb@gmail.com>

---------

Co-authored-by: Jordan Harband <ljharb@gmail.com>
2024-07-24 10:29:51 -07:00
Nicolò Ribaudo 29fe58bc8f
Update LICENSE (#4107)
* Update LICENSE

* Update LICENSE

* Update LICENSE

Co-authored-by: Jordan Harband <ljharb@gmail.com>

---------

Co-authored-by: Jordan Harband <ljharb@gmail.com>
2024-07-24 09:36:44 -07:00
Paul Bakker f55e99796f
Prevent harness code not loading when async/generator/asyncGenerator not supported (#4164)
* Dont throw when async/generato/asyncGenerator not supported

* Apply suggestions from code review
2024-07-24 09:18:02 -07:00
Timothy Flynn d8aa2e4ef7 Update NumberFormat.prototype.useGrouping test for CLDR 45
In CLDR 45, in the en-IN locale, the compact thousands symbol changed
from 'T' to 'K' after a survey was conducted in India:

b8d4472975
2024-07-24 08:53:41 -07:00
Ioanna M Dimitriou H ba92881748
RAB: Integrate staging tests for the .length method (#4154)
* Import relevant files from #3888

* Adds resizableArrayBufferUtils.js to includes and removes its content
from each test. Also splits tests for .byteLength and .byteOffset to
new files in the respective directories.

Test lines calling .buffer in .../length/resizable-buffer-assorted.js
were not split to .../buffer/ as they seem to only do a check for the
test on .length but perhaps they need to be also split to a new file
.../buffer/resizable-buffer-assorted.js
2024-07-23 16:42:45 -07:00
Paul Bakker 0a8622de68 Dont use const in for (of) loops, for when those aren't properly
supported
2024-07-23 15:40:13 -07:00
Leo Balter 880f8a5ba6 Add tests for RegExp.escape 2024-07-18 17:30:09 +02:00
Sosuke Suzuki d09ecdb57b Use spaces instead of tabs 2024-07-18 12:12:03 +02:00
Ioanna M Dimitriou H 63e81baf5b
RAB: Integrate staging tests for the .lastIndexOf method (#4153)
* Import relevant files from #3888

* Removing parts in resizableArrayBufferUtils.js and adding it in includes,
while applying review changes from PRs for previously tested methods.

* Some changes for readability.
2024-07-17 17:37:17 -07:00
Ioanna M Dimitriou H 97cf4fd6e9
RAB: Integrate staging tests for the .keys method (#4138)
* Import relevant files from #3888

* Removing parts in resizableArrayBufferUtils.js and adding it in includes,
while applying review changes from PRs for previously tested methods.

* Removes redundant documentation

* Address review comments.
2024-07-16 09:25:18 -07:00
Meghan Denny 5e602555d0 features.txt: arraybuffer-transfer is stage 4 2024-07-15 14:02:33 +02:00
magic-akari 03ade8b46a
Add missing test for `Math.pow(1, NaN)` (#4149) 2024-07-15 13:58:33 +02:00
Jordan Harband b01075d87c
Merge pull request #4151 from lahma/missing-compare-array-helpers
Add missing compareArray includes
2024-07-13 11:17:46 -07:00
Marko Lahma c6a36ccc64 Add missing compareArray includes 2024-07-13 12:35:04 +03:00
Ioanna M Dimitriou H 694fae5b10
RAB: Integrate staging tests for the .join method (#4137)
* Import relevant files from #3888

* Removing parts in resizableArrayBufferUtils.js and adding it in includes,
while applying review changes from PRs for previously tested methods.

* Removes forgotten ArrayJoinHelper
2024-07-12 09:32:10 -07:00
Ioanna M Dimitriou H ab0c31a458
RAB: Integrate staging tests for the .indexOf method (#4136)
* Import relevant files from #3888

* Removing parts in resizableArrayBufferUtils.js and adding it in includes,
while applying review changes from PRs for previously tested methods.

* Restructures ArrayIndexOfNumOrBigInt to use MayNeedBigInt as it seems clearer.

* Adds missing test file for Array.prototype.indexOf
2024-07-11 16:05:07 -07:00
Ioanna M. Dimitriou H 88b013ff7f Adds missing test file for Array.prototype.includes 2024-07-11 15:57:08 -07:00
Ioanna M. Dimitriou H 441cbef061 Restructures ArrayIncludesNumOrBigInt to use MayNeedBigInt as it seems clearer. 2024-07-11 15:57:08 -07:00
Ioanna M. Dimitriou H 3dde047c84 Removing parts in resizableArrayBufferUtils.js and adding it in includes,
while applying review changes from PRs for previously tested methods.
2024-07-11 15:57:08 -07:00
Ioanna M. Dimitriou H 14de2ce388 Import relevant files from #3888 2024-07-11 15:57:08 -07:00
Ioanna M. Dimitriou H 0ce0bd7314 Renames ResizeBufferMidIteration to ResizeMidIteration 2024-07-11 15:42:35 -07:00
Ioanna M. Dimitriou H 8ca7c1a42a Adds missing Array.prototype.filter \'shrink\' tests and some typesetting 2024-07-11 15:42:35 -07:00
Frank Yung-Fong Tang 753d502e9a Update the expctation of constructor-options-firstDayOfWeek-valid.js
true will be dropped inside UTS35
2024-07-11 15:24:54 -07:00
Shu-yu Guo 58751ca335
Add tests for Atomics.pause (#4147)
* Add tests for Atomics.pause

* Address review
2024-07-11 11:17:24 -07:00
Chengzhong Wu 830c52155d Fix AbstractModuleSource verifyProperty calls 2024-07-11 15:04:07 +02:00
Frank Tang 7b154389ce Update firstDay test to latest spec after PR 79
Spec Changes merged
https://github.com/tc39/proposal-intl-locale-info/pull/79
2024-07-10 11:20:28 -07:00
André Bargull 318df8f01e Delete harness test for removed TemporalHelpers.oneShiftTimeZone function 2024-07-10 10:47:36 -07:00
Rezvan Mahdavi Hezaveh 97e0bef215 [explicit-resource-management] Add await using to the bytecode generator
This CL adds subtypes (SyncJSDisposableStack and AsyncDisposableStack)
to JSDisposableStack as well as `await using` to the bytecode generator.
Currently async generators are broken and the fix is left as a TODO
in this CL. Also, exception handling (promise rejections) will be
completed in a follow up CL.

Bug: 42203814
Change-Id: I303a380b57fb4ab4662e4f55fb4dc9b14d18cd2a
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5569647
Reviewed-by: Shu-yu Guo <syg@chromium.org>
Commit-Queue: Rezvan Mahdavi Hezaveh <rezvan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#94944}
2024-07-10 10:19:19 -07:00
André Bargull 16322d384a Allow alternative era names
Temporal doesn't specify concrete era names, so tests shouldn't assert
for example that the era code of the current Gregorian era is `"ce"`. We
still want to validate the era names somehow however, so allow alternative
era names using the era codes from the "Intl era and monthCode" proposal.
2024-07-10 07:59:20 -07:00
André Bargull 0ff7881d75 Use explicit relative paths 2024-07-10 16:02:53 +02:00
André Bargull 507c28b3f9 Fix strict mode errors 2024-07-10 13:57:33 +02:00
Kevin Gibbons 08e1aa808a
Tests for later base64 changes (#4133)
Co-authored-by: Jordan Harband <ljharb@gmail.com>
2024-07-10 11:35:22 +02:00
Meghan Denny 997600841f features.txt: upgrade stage4 proposals 2024-07-10 11:30:42 +02:00