1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21

content / test / data / accessibility / event / form-required-changed.html [blame]

<!DOCTYPE html>
<!--
@MAC-ALLOW:AXRequired
@WIN-ALLOW:IA2_STATE_REQUIRED
@UIA-WIN-DENY:*
@UIA-WIN-ALLOW:IsRequiredForForm*
-->
<form>
  <input type="checkbox">
  <input type="radio" required>
</form>
<script>
  function go() {
    document.querySelector('input[type=checkbox]').required = true;
    document.querySelector('input[type=radio]').required = false;
    // Additional event needs to be fired here to prevent this test from
    // time out for windows. We should fix it.
    // http://crbug.com/719030
    document.querySelector('input[type=radio]').click();
  }
</script>