() => {
  let selectMenu = createSelectMenu(3);
  let options = selectMenu.children;

  // select options from first to last
  for (let i = 0; i < options.length; i++) {
    options[i].selected = true;
    checkSelection(selectMenu, i);
  }

  // select options from last to first
  for (let i = options.length - 1; i >= 0; i--) {
    options[i].selected = true;
    checkSelection(selectMenu, i);
  }

  options[2].selected = true;
  checkSelection(selectMenu, 2);
  options[2].selected = false;
  checkSelectio