Skip to content

Add 2 new tests for recent issues cases - #1425

Open
asturur wants to merge 6 commits into
Automattic:masterfrom
asturur:add-clock-test
Open

Add 2 new tests for recent issues cases#1425
asturur wants to merge 6 commits into
Automattic:masterfrom
asturur:add-clock-test

Conversation

@asturur

@asturur asturur commented May 12, 2019

Copy link
Copy Markdown
Contributor

Added correct test for drawImage + clip + shadow
image

Added failing test for gradient + low opacity
image

@asturur asturur changed the title Add a test for interaction of clip + drawImage 9 args + shadow Add 2 new tests for recent issues cases May 12, 2019
@LinusU

LinusU commented May 13, 2019

Copy link
Copy Markdown
Collaborator

Would you mind fixing the linting issues: https://travis-ci.org/Automattic/node-canvas/jobs/531320266

☺️

Comment thread test/public/tests.js Outdated
ctx.transform(cos, sin, -sin, cos, x, y);
}

var I = 100;

Copy link
Copy Markdown
Collaborator

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++)

Copy link
Copy Markdown
Contributor Author

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.

@NightScript370

Copy link
Copy Markdown

I just send a PR to @asturur's repository that fixes @LinusU's review. I also made it consistent with the other examples by not having semi-colins

@asturur

asturur commented Jun 6, 2019

Copy link
Copy Markdown
Contributor Author

hey thanks, i have been quite busy at work

@zbjornson
zbjornson force-pushed the master branch 2 times, most recently from 64ed3d8 to ff0f2ab Compare December 28, 2023 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants