<!DOCTYPE html>
<meta charset="utf-8">
<title>relatedTarget on blur()</title>
<link rel="help" href="https://w3c.github.io/uievents/#events-focusevent">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

<input id="input1">
<input id="input2">

<script>
"use strict";

const input1 = document.getElementById("input1");
const input2 = document.getElementById("input2");

async_test(t => {
  input1.focus();

  let blurCount = 0;
  let focusoutCount = 0;
  l