If you click the canvas should resize without any errors.

Tests: setAttributes(), resizeCanvas()