se if (type === "focus") {
      focusCount++;
    } else if (type === "focusin") {
      focusinCount++;
    }
  }
  document.addEventListener("blur", watchEvent, true);
  document.addEventListener("focusout", watchEvent, true);
  document.addEventListener("focus", watchEvent, true);
  document.addEventListener("focusin", watchEvent, true);

  input1.blur();
  assert_equals(blurCount, 1, "blur fired once");
  assert_equals(focusoutCount, 1, "focusout fired once");
  assert_equals(focusCount, 0, "focus not 