testing/web-platform/tests/html/links/icon/no-load-event.html
author Morgan Reschenberg <mreschenberg@mozilla.com>
Tue, 18 Jan 2022 23:31:21 +0000
changeset 605085 4c684d5d16fe3a85614e7cb56be8c0029dc98b12
parent 558479 6545b0d4a0e912e392df0fbb2d46bf1e6606af0b
permissions -rw-r--r--
Bug 1748878: Use LayoutDeviceInt types for points, rects, sizes in dev pixels r=Jamie,emilio a=graft Differential Revision: https://phabricator.services.mozilla.com/D135272

<!DOCTYPE html>
<meta charset="utf-8" />
<title>&lt;link rel="icon"&gt; doesn't fire a load 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 = "/images/wpt-logo/wpt-logo-darkblue-bg.svg";

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