Skip to content

Commit

Permalink
Update freedraw.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaMan123 committed May 14, 2022
1 parent 2782954 commit 5c01ce5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/visual/freedraw.js
Original file line number Diff line number Diff line change
Expand Up @@ -2182,19 +2182,20 @@
}
}));
visualTester(Object.assign({}, test, {
test: test.test + ' (context mesh)',
code: function (canvas, callback) {
test.build(canvas);
fireMouseUp(canvas.freeDrawingBrush);
canvas.renderAll();
canvas.contextContainer.drawImage(canvas.upperCanvasEl, 0, 0);
callback(canvas.lowerCanvasEl);
}
}));
// render top cotext over main context and compare against visuals after mouseup
visualTester(Object.assign({}, test, {
test: test.test + ' (context mesh)',
code: function (canvas, callback) {
test.build(canvas);
fireMouseUp(canvas.freeDrawingBrush);
canvas.renderAll();
canvas.contextContainer.drawImage(canvas.upperCanvasEl, 0, 0);
callback(canvas.lowerCanvasEl);
}
}));
Expand Down

0 comments on commit 5c01ce5

Please sign in to comment.