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

Update OffscreenCanvas tests to respect [EnforceRange] idl annotation #28836

Merged

Conversation

Cwiiis
Copy link
Contributor

@Cwiiis Cwiiis commented May 5, 2021

At some point, getImageData and OffscreenCanvas width/height properties were updated to use [EnforceRange] (I guess this happened at the same time as the same changes in canvas) - this updates the tests to respect this. There are already range-related tests for getImageData, so 2d.imageData.get.tiny can just be removed, size.attributes.idl I've updated to check that the exceptions are thrown and that setting out of range values has no effect.

Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

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

Did you check that this matches Chrome?

@Cwiiis
Copy link
Contributor Author

Cwiiis commented May 5, 2021

Did you check that this matches Chrome?

At least with the version of Chrome I have on my desktop (90.0.4430.93), this will now fail, but this matches the spec (and works in WebKit).

@Cwiiis
Copy link
Contributor Author

Cwiiis commented May 5, 2021

Did you check that this matches Chrome?

At least with the version of Chrome I have on my desktop (90.0.4430.93), this will now fail, but this matches the spec (and works in WebKit).

I just checked Chrome experimental results, and these are indeed failing there and should pass after these changes.

@Cwiiis Cwiiis merged commit bbe3c01 into web-platform-tests:master May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants