", test => passed.push(test.fullTitle()))
    runner.on("fail", (test, err) => failures.push({title: test.fullTitle(), err: String(err)}))
    runner.on("pending", test => pending.push(test.fullTitle()))
    runner.once("end", () => {
      let out = document.createElement("pre")
      out.className = "test-result"
      out.textContent = JSON.stringify({passed, pending, failures}, null, 2)
      document.body.appendChild(out)
    })
  }
  mocha.setup(options)
  await import("../test/webtest-vim")
  mocha.r