{"ScriptPreparationCode":null,"TestCases":[{"Name":"Own roundRect","Code":"function roundRect(canvas, x, y, w, h, r) {\r\n if (w \u003C 2 * r) r = Math.round(w / 2);\r\n if (h \u003C 2 * r) r = Math.round(h / 2);\r\n canvas.beginPath();\r\n canvas.moveTo(x \u002B r, y);\r\n canvas.arcTo(x \u002B w, y, x \u002B w, y \u002B h, r);\r\n canvas.arcTo(x \u002B w, y \u002B h, x, y \u002B h, r);\r\n canvas.arcTo(x, y \u002B h, x, y, r);\r\n canvas.arcTo(x, y, x \u002B w, y, r);\r\n canvas.closePath();\r\n}\r\n\r\nroundRect(ctx, 10, 10, 200, 100, 20);\r\n","IsDeferred":false},{"Name":"roundRect","Code":"ctx.roundRect(10, 10, 200, 100, 20);","IsDeferred":false},{"Name":"rect","Code":"ctx.beginPath();\r\nctx.rect(10, 10, 200, 100);\r\nctx.stroke();","IsDeferred":false}]}