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

Migrate resizable buffer tests out of staging #3888

Merged
merged 4 commits into from
Sep 12, 2024
Merged

Conversation

syg
Copy link
Contributor

@syg syg commented Jul 28, 2023

This PR migrates all resizable buffer tests out of staging into the main test suite. Tests that multiple similar methods at once are split up to to multiple files to be consistent with the existing directory structure.

No tests have been removed.

test/built-ins/ArrayBuffer/prototype/resize/coerced-new-length-detach.js is a new test that tests the normative detach timing change from the July 2023 TC39.

@syg syg requested review from a team as code owners July 28, 2023 21:33
@syg
Copy link
Contributor Author

syg commented Sep 12, 2023

Review ping.

@ptomato
Copy link
Contributor

ptomato commented Sep 13, 2023

Review ping.

@syg A few of us have started to review this over the past weeks but unfortunately it's quite large. We're trying to find a way for someone to commit time to it and failing that will otherwise try to split it up between maintainers. Thanks for your patience.

@syg
Copy link
Contributor Author

syg commented Sep 15, 2023

@ptomato Thanks. If it helps, this PR just splits up existing tests in staging, following the principle that each test262 tests for a single "behavior".

@syg
Copy link
Contributor Author

syg commented Oct 27, 2023

Another ping.

ioannad added a commit to ioannad/test262 that referenced this pull request Mar 26, 2024
…ray buffers.

These are the parts of the code in RAB staging tests that are heavily repeated.
In order to somewhat compact the migration of RAB staging tests (see PR tc39#3888).
ioannad added a commit to ioannad/test262 that referenced this pull request Mar 26, 2024
…ray buffers.

These are the parts of the code in RAB staging tests that are heavily repeated.
In order to somewhat compact the migration of RAB staging tests (see PR tc39#3888).
@ioannad
Copy link
Contributor

ioannad commented Mar 28, 2024

I created PR #4030 which has a helper file with a lot of the duplicated code from the files in this PR.

During the maintainers meeting yesterday we decided that when PR #4030 is merged, I will be removing the duplicated code from the test files of this PR, and will be adding the cleaned up tests to separate smaller PRs, split by method. The goal is to make it easier to split up the review load. When each smaller PR gets merged we plan to rebase this PR so that it keeps getting smaller and we make sure we didn't forget anything.

ljharb pushed a commit to ioannad/test262 that referenced this pull request Apr 30, 2024
…ray buffers.

These are the parts of the code in RAB staging tests that are heavily repeated.
In order to somewhat compact the migration of RAB staging tests (see PR tc39#3888).
ptomato pushed a commit that referenced this pull request Apr 30, 2024
Collection of helper constants and functions for testing resizable array buffers.

These are the parts of the code in RAB staging tests that are heavily repeated.
In order to somewhat compact the migration of RAB staging tests (see PR #3888).
ioannad added a commit to ioannad/test262 that referenced this pull request May 3, 2024
of Array.prototype and TypedArray.prototype

This is part of PR tc39#3888 to make reviewing easier.
Includes changes to use the helper ./harness/resizableArrayBufferUtils.js
ioannad added a commit to ioannad/test262 that referenced this pull request May 3, 2024
of TypedArray.prototype

This is part of PR tc39#3888 to make reviewing easier.
Includes changes to use the helper ./harness/resizableArrayBufferUtils.js
ioannad added a commit to ioannad/test262 that referenced this pull request May 3, 2024
of Array.prototype and TypedArray.prototype

This is part of PR tc39#3888 to make reviewing easier.
Includes changes to use the helper ./harness/resizableArrayBufferUtils.js
ioannad added a commit to ioannad/test262 that referenced this pull request May 3, 2024
of Array.prototype and TypedArray.prototype

This is part of PR tc39#3888 to make reviewing easier.
Includes changes to use the helper ./harness/resizableArrayBufferUtils.js
ioannad added a commit to ioannad/test262 that referenced this pull request May 3, 2024
of Array.prototype and TypedArray.prototype

This is part of PR tc39#3888 to make reviewing easier.
Includes changes to use the helper ./harness/resizableArrayBufferUtils.js
ioannad added a commit to ioannad/test262 that referenced this pull request May 3, 2024
of Array.prototype and TypedArray.prototype

This is part of PR tc39#3888 to make reviewing easier.
Includes changes to use the helper ./harness/resizableArrayBufferUtils.js
ptomato pushed a commit that referenced this pull request May 8, 2024
* RAB: Integrate staging tests for .at method
of Array.prototype and TypedArray.prototype

This is part of PR #3888 to make reviewing easier.
Includes changes to use the helper ./harness/resizableArrayBufferUtils.js
ptomato pushed a commit to ioannad/test262 that referenced this pull request May 8, 2024
of TypedArray.prototype

This is part of PR tc39#3888 to make reviewing easier.
Includes changes to use the helper ./harness/resizableArrayBufferUtils.js
ptomato pushed a commit that referenced this pull request May 8, 2024
* RAB: Integrate staging tests for .byteLength method
of TypedArray.prototype

This is part of PR #3888 to make reviewing easier.
Includes changes to use the helper ./harness/resizableArrayBufferUtils.js
ioannad added a commit to ioannad/test262 that referenced this pull request Jun 24, 2024
ptomato pushed a commit to ioannad/test262 that referenced this pull request Jun 26, 2024
of Array.prototype and TypedArray.prototype

This is part of PR tc39#3888 to make reviewing easier.
Includes changes to use the helper ./harness/resizableArrayBufferUtils.js
ptomato pushed a commit to ioannad/test262 that referenced this pull request Aug 5, 2024
ptomato pushed a commit that referenced this pull request Aug 5, 2024
* Import relevant files from #3888

* Removing parts in resizableArrayBufferUtils.js and adding it in includes,
and renaming helper function.
ptomato pushed a commit to ioannad/test262 that referenced this pull request Aug 6, 2024
ptomato pushed a commit that referenced this pull request Aug 6, 2024
* 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.

* Renamed test files

* Some minor documentation fixes and removing onlyStrict flag
ptomato pushed a commit to ioannad/test262 that referenced this pull request Aug 6, 2024
ptomato pushed a commit that referenced this pull request Aug 6, 2024
* 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 unnecessary .from calls, as suggested in previous PR review
comment: #4138 (comment)
ptomato pushed a commit to ioannad/test262 that referenced this pull request Aug 9, 2024
ptomato pushed a commit that referenced this pull request Aug 9, 2024
* 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.

* Address review comments.
ptomato pushed a commit to ioannad/test262 that referenced this pull request Aug 13, 2024
ptomato pushed a commit that referenced this pull request Aug 14, 2024
* 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.

* Add coerced-start-shrink test for Array.p.slice

* Renames files to add more tests for the end argument of .slice.

* Tests for the 'end' argument of .slice and test file for Array.p.slice
parallel to TypedArray.p.slice resizable-buffer.js
ptomato pushed a commit to ioannad/test262 that referenced this pull request Aug 14, 2024
ptomato pushed a commit that referenced this pull request Aug 14, 2024
* 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.

* Apply suggestions from code review

* Address review: get implementation dependent toLocaleString separator.

* Apply suggestions from code review
ptomato pushed a commit to ioannad/test262 that referenced this pull request Aug 15, 2024
ptomato pushed a commit that referenced this pull request Aug 15, 2024
* Import relevant files from #3888

* Adds resizableArrayBufferUtils.js to includes and removes its content from each test

* renamed tests to indicate the end argument is tested too

* Adds more tests for the 'end' argument of .subarray
@ptomato
Copy link
Contributor

ptomato commented Aug 15, 2024

Rebased after merging all of the tests belonging to Array and TypedArray methods.

ioannad added a commit to ioannad/test262 that referenced this pull request Aug 15, 2024
Ms2ger pushed a commit to ioannad/test262 that referenced this pull request Aug 27, 2024
Ms2ger pushed a commit to ioannad/test262 that referenced this pull request Aug 27, 2024
Copy link
Contributor

@ioannad ioannad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we remove the addition of test/built-ins/TypedArray/prototype/slice/coerced-start-grow.js from this PR then it can be merged to add the only testfile not previously added, and to remove all the now integrated tests from staging/.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file was added by PR #4174 under the name test/built-ins/TypedArray/prototype/slice/coerced-start-end-grow.js, so it should be removed from here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only new test file in this PR that has not been added by the series of "RAB" PRs referencing this PR.

LGTM!

@ioannad
Copy link
Contributor

ioannad commented Sep 11, 2024

@ptomato: I deleted the duplicate test file, so this is now ready to be merged.

@Ms2ger Ms2ger merged commit a9c1c08 into tc39:main Sep 12, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants