ild(goodLink);

        let badLink = document.createElement("link");
        badLink.setAttribute("rel", "preload");
        badLink.setAttribute("href", "this-file-does-not-exist-and-so-is-invalid.css");
        badLink.setAttribute("as", "style");
        badLink.addEventListener("error", function () {
            println("Got error event");

            if (++eventCount == 2) {
                done();
            }
        });
        document.head.appendChild(badLink);
    });
</script>
