Skip to content

Commit

Permalink
Merge pull request #7010 from davepagurek/fix/tests
Browse files Browse the repository at this point in the history
Fix broken test
  • Loading branch information
limzykenneth authored May 4, 2024
2 parents 63316d7 + c86cfac commit 4d52230
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions test/unit/image/p5.Image.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,13 @@ suite('p5.Image', function() {
myp5.createCanvas(10,10);
myp5.pixelDensity(2);
let img = myp5.createGraphics(10,10);
img.noStroke();
img.rect(0,0,10,10);
img.background(0);
let mask = createGraphics(10,10);
let mask = myp5.createGraphics(10,10);
mask.noStroke();
mask.rect(0,0,5,5);
let masked = img.get();
masked.mask( mask.get() );
masked.mask(mask.get());

for (let i = 0; i < masked.width; i++) {
for (let j = 0; j < masked.height; j++) {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/visual/cases/typography.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ visualSuite('Typography', function() {
screenshot();
});
});
}, { focus: true });
});

0 comments on commit 4d52230

Please sign in to comment.