{"ScriptPreparationCode":"/*your preparation JavaScript code goes here\r\nTo execute async code during the script preparation, wrap it as function globalMeasureThatScriptPrepareFunction, example:*/\r\nasync function globalMeasureThatScriptPrepareFunction() {\r\n // This function is optional, feel free to remove it.\r\n // await someThing();\r\n}","TestCases":[{"Name":"from ImageDecoder","Code":"(async () =\u003E {\r\n let init = {\r\n type: \u0022image/png\u0022,\r\n data: imageByteStream,\r\n };\r\n\r\n const resp = await fetch(\u0027https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png\u0027);\r\n const imageDecoder = new ImageDecoder({ data: resp.body, type: \u0022image/png\u0022 });\r\n const frame = await decoder.decode();\r\n const bitmap = frame.image;\r\n const image = new Image();\r\n image.src = URL.createObjectURL(bitmap);\r\n})();","IsDeferred":false},{"Name":"from native","Code":"const img = new Image();\r\nimg.src = \u0027https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png\u0027;","IsDeferred":false}]}