{"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":"createElement","Code":"/*When writing async/deferred tests, use \u0060deferred.resolve()\u0060 to mark test as done*/\r\ndiv = document.createElement(\u0022div\u0022);\r\nh1 = document.createElement(\u0022h1\u0022);\r\nh1.replaceChildren(\u0022Hello, World!\u0022)\r\np = document.createElement(\u0022p\u0022);\r\np.replaceChildren(\u0022Now is the winter of our discontent.\u0022);\r\ndiv.replaceChildren(h1, p);","IsDeferred":false},{"Name":"DOMParser","Code":"Document\r\n .parseHTMLUnsafe(\u0022\u003Cdiv\u003E\u003Ch1\u003EHello, World!\u003C/h1\u003E\u003Cp\u003ENow is the summer of our discontent.\u003C/p\u003E\u003C/div\u003E\u0022)\r\n .body","IsDeferred":false}]}