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

content / test / data / accessibility / regression / select-expand-many-options-crash.html [blame]

<!--
@DEFAULT-ACTION-ON:Fruit
-->
<!-- crbug.com/338646632: crash with 1001+ options -->
<!DOCTYPE html>
<html>
<body>
<select aria-label="Fruit">
</select>
<script>
const selectElement = document.querySelector("select");
const numOptions = 1020;

for (let i = 0; i < numOptions; i++) {
  const option = document.createElement("option");
  option.value = i;
  option.text = i;
  selectElement.add(option);
}
</script>
</body>
</html>