{"ScriptPreparationCode":"var img = new Image();\r\nvar canvas = document.createElement(\u0027canvas\u0027);\r\nvar resCanvas = document.createElement(\u0027canvas\u0027);\r\nvar isReady = false;\r\n\r\nvar frameRaw1 = null;\r\nvar frameRaw2 = null;\r\nvar result = null;\r\n\r\nimg.addEventListener(\u0027load\u0027, function() {\r\n createImageBitmap(img).then(function(imageBitmap) {\r\n frameRaw2 = imageBitmap;\r\n canvas.width = frameRaw2.width;\r\n canvas.height = frameRaw2.height;\r\n frameRaw1 = canvas.getContext(\u00272d\u0027);\r\n resCanvas.width = frameRaw2.width;\r\n resCanvas.height = frameRaw2.height;\r\n result = resCanvas.getContext(\u00272d\u0027);\r\n isReady = true;\r\n\t});\r\n});\r\n\r\nimg.src = \u0027https://www.apple.com/105/media/us/airpods-pro/2019/1299e2f5_9206_4470_b28e_08307a42f19b/anim/sequence/large/01-hero-lightpass/0025.jpg\u0027;","TestCases":[{"Name":"canvas2d.drawImage(imageElement) ","Code":"frameRaw1.clearRect(0, 0, canvas.width, canvas.height);\r\nframeRaw1.drawImage(img, 0, 0);\r\nresult.drawImage(canvas, 0, 0);","IsDeferred":false},{"Name":"createImageBitmap(imageElement)","Code":"createImageBitmap(img).then(function(r) {\r\n frameRaw2 = imageBitmap;\r\n result.drawImage(frameRaw2, 0, 0);\r\n});","IsDeferred":false}]}