{"ScriptPreparationCode":"var imgCanvas = document.getElementById(\u0022image\u0022);\r\nvar imgCtx = imgCanvas.getContext(\u00222d\u0022);\r\nvar canvas = document.getElementById(\u0022canvas\u0022);\r\nvar context = canvas.getContext(\u00222d\u0022);\r\n\r\nimgCtx.fillStyle = \u0022red\u0022;\r\nimgCtx.fillRect(0, 0, 300, 300);","TestCases":[{"Name":"Image data","Code":"context.putImageData(imgCtx.getImageData(0, 0, 300, 300), 0, 0);","IsDeferred":false},{"Name":"Draw Image","Code":"context.drawImage(imgCanvas, 0, 0);","IsDeferred":false}]}