role='ReGiOn group'][aria-label], has region role" aria-label="x" data-expectedrole="region" class="ex">x</div>

    <div role="
buTtOn" data-testname="div[role=buTtOn] ignoring line break, has button role" tabindex="0" aria-label="x" data-expectedrole="button" class="ex">x</div>

<script>
AriaUtils.verifyRolesBySelector(".ex");
AriaUtils.verifyGenericRolesBySelector(".ex-generic");
</script>

</body>
</html>