{"ScriptPreparationCode":null,"TestCases":[{"Name":"matches","Code":"var element = document.querySelector(\u0022.foo\u0022);\r\nvar i = 1000;\r\nwhile (i--) {\r\n\tif (!element.matches(\u0022div.foo\u0022)) {\r\n throw new Error(\u0022check failed\u0022);\r\n }\r\n}","IsDeferred":false},{"Name":"closest","Code":"var element = document.querySelector(\u0022.foo\u0022);\r\nvar i = 1000;\r\nwhile (i--) {\r\n\tif (!element.closest(\u0022div.foo\u0022)) {\r\n throw new Error(\u0022check failed\u0022);\r\n }\r\n}","IsDeferred":false},{"Name":"classList (with nodeName)","Code":"var element = document.querySelector(\u0022.foo\u0022);\r\nvar i = 1000;\r\nwhile (i--) {\r\n\tif (!(element.nodeName === \u0022DIV\u0022 \u0026\u0026 element.classList.contains(\u0022foo\u0022))) {\r\n throw new Error(\u0022check failed\u0022);\r\n }\r\n}","IsDeferred":false},{"Name":"classList (with tagName)","Code":"var element = document.querySelector(\u0022.foo\u0022);\r\nvar i = 1000;\r\nvar className = \u0022foo\u0022;\r\nwhile (i--) {\r\n\tif (!(element.tagName === \u0022DIV\u0022 \u0026\u0026 element.classList.contains(\u0022foo\u0022))) {\r\n throw new Error(\u0022check failed\u0022);\r\n }\r\n}","IsDeferred":false},{"Name":"classList (with instanceof)","Code":"var element = document.querySelector(\u0022.foo\u0022);\r\nvar i = 1000;\r\nwhile (i--) {\r\n\tif (!(element instanceof HTMLDivElement \u0026\u0026 element.classList.contains(\u0022foo\u0022))) {\r\n throw new Error(\u0022check failed\u0022);\r\n }\r\n}","IsDeferred":false}]}