{"ScriptPreparationCode":"var test_element = document.getElementById(\u0022foo\u0022);","TestCases":[{"Name":"Use hasClass shorthand","Code":"var result = test_element.className.indexOf(\u0022bar\u0022) != -1;","IsDeferred":false},{"Name":"Use classList","Code":"var result = test_element.classList.contains(\u0022bar\u0022);","IsDeferred":false}]}