Skip to content

Commit 06e7f66

Browse files
committed
Added test of rectangles (#4)
1 parent 9bfcc5b commit 06e7f66

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

tests/expected.png

24 Bytes
Loading

tests/expected.svg

Lines changed: 1 addition & 0 deletions
Loading

tests/visualTests.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,5 +173,8 @@ ctx.lineTo(5, 95);
173173
ctx.closePath();
174174
ctx.fill();
175175

176+
ctx.fillStyle = "#0f0";
177+
ctx.fillRect(34, 10, 30, 7);
178+
176179
var wanted = fs.readFileSync(__dirname + "/expected.png");
177180
tap.equalPng(canvas.toPng(), wanted);

0 commit comments

Comments
 (0)