-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
2DContext: Set up tests for new signature of imageData functions #5180
Conversation
{get,put,create}imageData() functions are reverting from double to long. Added/cleaned up tests for dealing with float inputs. Relevant discussion: whatwg/html#2433
Notifying @gsnedders. (Learn how reviewing works.) |
ImageData()'s double arguments had undefined behavior and implementation incompatibilities. Reverting it to long makes it well defined. Fixes whatwg#2433. Tests: * web-platform-tests/wpt#5180
Firefox (nightly channel)Testing web-platform-tests at revision 7f3069c All results4 tests ran/2dcontext/pixel-manipulation/2d.imageData.create2.double.html
/2dcontext/pixel-manipulation/2d.imageData.create2.zero.html
/2dcontext/pixel-manipulation/2d.imageData.get.double.html
/2dcontext/pixel-manipulation/2d.imageData.get.zero.html
|
Chrome (unstable channel)Testing web-platform-tests at revision 7f3069c All results4 tests ran/2dcontext/pixel-manipulation/2d.imageData.create2.double.html
/2dcontext/pixel-manipulation/2d.imageData.create2.zero.html
/2dcontext/pixel-manipulation/2d.imageData.get.double.html
/2dcontext/pixel-manipulation/2d.imageData.get.zero.html
|
@@ -1,28 +1,30 @@ | |||
<!DOCTYPE html> | |||
<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see an update to this tool. Am I missing something or is this direct modification of these tests the wrong way to go?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
they come from the tests2d.yaml
files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also note we'd get a CI failure if it was modifying only the generated files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
ImageData()'s double arguments had undefined behavior and implementation incompatibilities. Reverting it to long makes it well defined. Fixes whatwg#2433. Tests: * web-platform-tests/wpt#5180
getImageData(), putImageData(), and createImageData() double arguments had undefined behavior and implementation incompatibilities. Reverting them back to long makes it well defined. Tests: web-platform-tests/wpt#5180. Fixes #2433.
getImageData(), putImageData(), and createImageData() double arguments had undefined behavior and implementation incompatibilities. Reverting them back to long makes it well defined. Tests: web-platform-tests/wpt#5180. Fixes whatwg#2433.
{get,put,create}imageData() functions are reverting from double to long.
Added/cleaned up tests for dealing with float inputs.
Relevant discussion: whatwg/html#2433