Hello
{"ScriptPreparationCode":null,"TestCases":[{"Name":"ResizeObserver","Code":"let value;\r\nconst observer = new ResizeObserver(entries =\u003E {\r\n\tvalue = entries[0].contentRect.width;\r\n})\r\n\r\nobserver.observe(document.body)\r\n\r\nfor (let i = 500; i \u003C= 1920; i\u002B\u002B) {\r\n\twindow.resizeTo(i, 1000)\r\n}","IsDeferred":false},{"Name":"matchMedia","Code":"let value;\r\nconst handleMatchChange = (val) =\u003E {\r\n\tvalue = val;\r\n}\r\nconst match1 = window.matchMedia(\u0027screen and (min-width: 800px)\u0027)\r\nmatch1.addEventListener(\u0027change\u0027, handleMatchChange);\r\n\r\nconst match2 = window.matchMedia(\u0027screen and (min-width: 480px)\u0027)\r\nmatch2.addEventListener(\u0027change\u0027, handleMatchChange);\r\n\r\nconst match3 = window.matchMedia(\u0027screen and (min-width: 1200px)\u0027)\r\nmatch3.addEventListener(\u0027change\u0027, handleMatchChange);\r\n\r\nfor (let i = 500; i \u003C= 1920; i\u002B\u002B) {\r\n\twindow.resizeTo(i, 1000)\r\n}","IsDeferred":false}]}