-
Notifications
You must be signed in to change notification settings - Fork 1.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
Add 2 new tests for recent issues cases #1425
base: master
Are you sure you want to change the base?
Conversation
Would you mind fixing the linting issues: https://travis-ci.org/Automattic/node-canvas/jobs/531320266 |
test/public/tests.js
Outdated
ctx.transform(cos, sin, -sin, cos, x, y); | ||
} | ||
|
||
var I = 100; |
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.
Since this is just used on the line below, I would just do for (var i = 0; i < 100; i++)
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.
yes i just copy pasted the code from the issue, i did not think of improving it.
hey thanks, i have been quite busy at work |
Improve gradient test
64ed3d8
to
ff0f2ab
Compare
Added correct test for drawImage + clip + shadow
![image](https://user-images.githubusercontent.com/1194048/57578138-ef418900-7486-11e9-909a-ecdae05dbe06.png)
Added failing test for gradient + low opacity
![image](https://user-images.githubusercontent.com/1194048/57578272-139e6500-7489-11e9-8b77-0854763276af.png)