{"ScriptPreparationCode":"var\r\npathCanvas = document.createElement(\u0022canvas\u0022),\r\npathCtx = pathCanvas.getContext(\u00222d\u0022),\r\ndrawCanvas = document.createElement(\u0022canvas\u0022),\r\ndrawCtx = drawCanvas.getContext(\u00222d\u0022),\r\npath2D = new Path2D();\r\n\r\npathCanvas.width = drawCanvas.width = 640;\r\npathCanvas.height = drawCanvas.height = 480;\r\n\r\npath2D.moveTo(20, 10);\r\npath2D.lineTo(80, 10);\r\npath2D.quadraticCurveTo(90, 10, 90, 20);\r\npath2D.lineTo(90, 60);\r\npath2D.quadraticCurveTo(90, 70, 80, 70);\r\npath2D.lineTo(20, 70);\r\npath2D.quadraticCurveTo(10, 70, 10, 60);\r\npath2D.lineTo(10, 20);\r\npath2D.quadraticCurveTo(10, 10, 20, 10);\r\n","TestCases":[{"Name":"Path2D","Code":"pathCtx.fill(path2D);","IsDeferred":false},{"Name":"Draw Path Calls","Code":"drawCtx.beginPath();\r\ndrawCtx.moveTo(20, 10);\r\ndrawCtx.lineTo(80, 10);\r\ndrawCtx.quadraticCurveTo(90, 10, 90, 20);\r\ndrawCtx.lineTo(90, 60);\r\ndrawCtx.quadraticCurveTo(90, 70, 80, 70);\r\ndrawCtx.lineTo(20, 70);\r\ndrawCtx.quadraticCurveTo(10, 70, 10, 60);\r\ndrawCtx.lineTo(10, 20);\r\ndrawCtx.quadraticCurveTo(10, 10, 20, 10);\r\ndrawCtx.fill();\r\n","IsDeferred":false}]}