testing/web-platform/tests/html/links/icon/no-error-event.sub.html
author Emilio Cobos Álvarez <emilio@crisal.io>
Wed, 19 Jan 2022 20:51:45 +0100
changeset 604920 cc33400f0ff80f0eada6c3aa637f37d247a3ff46
parent 558479 6545b0d4a0e912e392df0fbb2d46bf1e6606af0b
permissions -rw-r--r--
Bug 1747934 - Make marker-line-height pass reliably in all platforms. The line height might be font-family-dependent. MANUAL PUSH: Trivial orange fix CLOSED TREE

<!DOCTYPE html>
<meta charset="utf-8" />
<title>&lt;link rel="icon"&gt; doesn't fire an error event</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
  async_test((t) => {
    const link = document.createElement("link");
    link.rel = "icon";
    link.href = "http://{{hosts[][nonexistent]}}";

    link.addEventListener("error", t.unreached_func());
    document.head.append(link);
    t.step_timeout(() => t.done(), 2000);
  }, document.title);
</script>