{"ScriptPreparationCode":"var img = new Image();\r\nvar imageBitmap;\r\nvar doneLoading = false;\r\n\r\nlet canvas = document.createElement(\u0027canvas\u0027);\r\ncanvas.width = 640;\r\ncanvas.height = 480;\r\n\r\nlet canvas2 = document.createElement(\u0027canvas\u0027);\r\ncanvas2.width = 640;\r\ncanvas2.height = 480;\r\n\r\nlet canvas3 = document.createElement(\u0027canvas\u0027);\r\ncanvas3.width = 640;\r\ncanvas3.height = 480;\r\n\r\nvar ctx = canvas.getContext(\u00272d\u0027);\r\nvar ctx2 = canvas2.getContext(\u00272d\u0027);\r\nvar ctx3 = canvas2.getContext(\u00272d\u0027);\r\n\r\nvar cv = document.createElement(\u0027canvas\u0027);\r\ncv.width = 700;\r\ncv.height = 700;\r\nvar cvx = cv.getContext(\u00272d\u0027);\r\n\r\nimg.addEventListener(\u0027load\u0027, function() {\r\n \r\n cvx.drawImage(img,0,0);\r\n \r\n});\r\n\r\nimg.src = \u0027https://1.bp.blogspot.com/-52MtzD0GfX0/WvP52CL1WjI/AAAAAAAAOVw/_OpK4JHeWK01d-7IiZ6vzojYGhXqLRXrACLcBGAs/s1600/EMxediL.jpg\u0027;","TestCases":[{"Name":"Image","Code":"if (doneLoading)\r\nctx.drawImage(img,0,0);","IsDeferred":false},{"Name":"canvas","Code":"if (doneLoading)\r\nctx3.drawImage(cv,0,0);","IsDeferred":false}]}