{"ScriptPreparationCode":"var words = [\u0027html\u0027, \u0027body\u0027, \u0027head\u0027];\r\nvar blacklistedResourceDomains = [\r\n \u0027www.gstatic.com\u0027,\r\n \u0027maps.gstatic.com\u0027,\r\n \u0027www.google-analytics.com\u0027,\r\n \u0027maps.googleapis.com\u0027,\r\n \u0027www.google.com\u0027,\r\n \u0027stats.g.doubleclick.net\u0027,\r\n];\r\nvar wordsRegex = /(html|head|body)/;\r\nvar blacklistedResourceDomainsRegex = /(www\\.(gstatic|google|google-analytics)\\.com|maps\\.(gstatic|googleapis)\\.com|stats\\.g\\.doubleclick\\.net)/;","TestCases":[{"Name":"Includes","Code":"const words1 = [\u0027html\u0027, \u0027body\u0027, \u0027head\u0027];\r\nconst blacklistedResourceDomains1 = [\r\n \u0027www.gstatic.com\u0027,\r\n \u0027maps.gstatic.com\u0027,\r\n \u0027www.google-analytics.com\u0027,\r\n \u0027maps.googleapis.com\u0027,\r\n \u0027www.google.com\u0027,\r\n \u0027stats.g.doubleclick.net\u0027,\r\n];\r\n\r\nconst case1 = words1.includes(\u0027p\u0027);\r\nconst case2 = words1.includes(\u0027body\u0027);\r\n\r\nconst case3 = blacklistedResourceDomains1.includes(\u0027mysite.com\u0027);\r\nconst case4 = blacklistedResourceDomains1.includes(\u0027www.gstatic.com\u0027);\r\nconst case5 = blacklistedResourceDomains1.includes(\u0027www.google-analytics.com\u0027);","IsDeferred":false},{"Name":"Regex","Code":"const wordsRegex1 = /(html|head|body)/;\r\nconst blacklistedResourceDomainsRegex1 = /(www\\.(gstatic|google|google-analytics)\\.com|maps\\.(gstatic|googleapis)\\.com|stats\\.g\\.doubleclick\\.net)/;\r\n\r\nconst case1 = wordsRegex1.test(\u0027p\u0027);\r\nconst case2 = wordsRegex1.test(\u0027body\u0027);\r\n\r\nconst case3 = blacklistedResourceDomainsRegex.test(\u0027mysite.com\u0027);\r\nconst case4 = blacklistedResourceDomainsRegex1.test(\u0027www.gstatic.com\u0027);\r\nconst case5 = blacklistedResourceDomainsRegex1.test(\u0027www.google-analytics.com\u0027);","IsDeferred":false},{"Name":"Dynamic Array Includes","Code":"const case1 = [\u0027html\u0027, \u0027body\u0027, \u0027head\u0027].includes(\u0027p\u0027);\r\nconst case2 = [\u0027html\u0027, \u0027body\u0027, \u0027head\u0027].includes(\u0027body\u0027);\r\n\r\nconst case3 = [\r\n \u0027www.gstatic.com\u0027,\r\n \u0027maps.gstatic.com\u0027,\r\n \u0027www.google-analytics.com\u0027,\r\n \u0027maps.googleapis.com\u0027,\r\n \u0027www.google.com\u0027,\r\n \u0027stats.g.doubleclick.net\u0027,\r\n].includes(\u0027mysite.com\u0027);\r\nconst case4 = [\r\n \u0027www.gstatic.com\u0027,\r\n \u0027maps.gstatic.com\u0027,\r\n \u0027www.google-analytics.com\u0027,\r\n \u0027maps.googleapis.com\u0027,\r\n \u0027www.google.com\u0027,\r\n \u0027stats.g.doubleclick.net\u0027,\r\n].includes(\u0027www.gstatic.com\u0027);\r\nconst case5 = [\r\n \u0027www.gstatic.com\u0027,\r\n \u0027maps.gstatic.com\u0027,\r\n \u0027www.google-analytics.com\u0027,\r\n \u0027maps.googleapis.com\u0027,\r\n \u0027www.google.com\u0027,\r\n \u0027stats.g.doubleclick.net\u0027,\r\n].includes(\u0027www.google-analytics.com\u0027);\r\n","IsDeferred":false}]}