{"ScriptPreparationCode":null,"TestCases":[{"Name":"resizeObserver (body)","Code":"this._resizeWatcher = new ResizeObserver(entry =\u003E {\r\n this._onResize();\r\n});\r\n\r\nthis._resizeWatcher.observe(document.body);\r\n\r\nfunction _onResize() {\r\n\tconsole.log(\u0027resized\u0027)\r\n}\r\n\r\nfor (let i = 360; i \u003C= 1920; i\u002B\u002B) {\r\n\twindow.resizeTo(i, 1000)\r\n}\r\n","IsDeferred":false},{"Name":"window resize event listener","Code":"window.addEventListener(\u0027resize\u0027, _onResize);\r\n\r\nfunction _onResize() {\r\n\tconsole.log(\u0027resize\u0027)\r\n}\r\n\r\nfor (let i = 360; i \u003C= 1920; i\u002B\u002B) {\r\n\twindow.resizeTo(i, 1000)\r\n}","IsDeferred":false}]}