{"ScriptPreparationCode":"var img = new Image();\r\nvar canvas = document.createElement(\u0027canvas\u0027);\r\nvar isReady = false;\r\n\r\nvar frameRaw1 = null;\r\nvar frameRaw2 = 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 isReady = true;\r\n\t});\r\n});\r\n\r\nimg.src = \u0027https://media.discordapp.net/attachments/447410261289205781/574359442913492992/unknown.png\u0027;","TestCases":[{"Name":"canvas2d.drawImage(imageElement) ","Code":"frameRaw1.clearRect(0, 0, canvas.width, canvas.height);\r\nframeRaw1.drawImage(img, 0, 0);","IsDeferred":false},{"Name":"createImageBitmap(imageElement)","Code":"createImageBitmap(img).then(function(imageBitmap) {\r\n frameRaw2 = imageBitmap;\r\n});","IsDeferred":false}]}