{"ScriptPreparationCode":"var master = document.getElementById(\u0027master\u0027);\r\nvar masterctx = master.getContext(\u00272d\u0027);\r\nvar pid = document.getElementById(\u0027pid\u0027).getContext(\u00272d\u0027);\r\nvar di = document.getElementById(\u0027di\u0027).getContext(\u00272d\u0027);\r\n\r\nmasterctx.fillRect(0,0,50,50);\r\nmasterctx.fillStyle = \u0022red\u0022;\r\nmasterctx.fillRect(50,50,100,100);\r\n\r\nvar imgData1 = masterctx.getImageData(0,0,100,100);\r\nvar imgData2 = masterctx.getImageData(25,0,75,100);","TestCases":[{"Name":"DrawImage whole master into di canvas","Code":"di.drawImage(master,0,0);","IsDeferred":false},{"Name":"PutImageData whole master into pid canvas","Code":"pid.putImageData(imgData1,0,0);","IsDeferred":false},{"Name":"DrawImage half master into di canvas","Code":"di.drawImage(master,25,0,50,100,25,0,50,100);","IsDeferred":false},{"Name":"PutImageData half master into pid canvas","Code":"pid.putImageData(imgData2,25,0);","IsDeferred":false}]}