From c86cfacc0a864bca80d40ccca1d4f6a70a108773 Mon Sep 17 00:00:00 2001 From: Dave Pagurek Date: Sat, 4 May 2024 16:13:47 +0200 Subject: [PATCH] Fix broken test --- test/unit/image/p5.Image.js | 7 ++++--- test/unit/visual/cases/typography.js | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/test/unit/image/p5.Image.js b/test/unit/image/p5.Image.js index 6db53702d2..bba219a142 100644 --- a/test/unit/image/p5.Image.js +++ b/test/unit/image/p5.Image.js @@ -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++) { diff --git a/test/unit/visual/cases/typography.js b/test/unit/visual/cases/typography.js index f7eb3092a6..664c7b71ca 100644 --- a/test/unit/visual/cases/typography.js +++ b/test/unit/visual/cases/typography.js @@ -17,4 +17,4 @@ visualSuite('Typography', function() { screenshot(); }); }); -}, { focus: true }); +});