<!DOCTYPE html>
<script src="../include.js"></script>
<script>
    asyncTest(async (done) => {
        // FIXME: Surely there's a better way to get this font URL
        let fontUrl = new URL(location.href);
        fontUrl.search = "";
        fontUrl += "/../../../../Assets/HashSans.woff";

        const hashSans = new FontFace("Hash Sans", `url(${fontUrl})`);
        println(`hashSans.family: ${hashSans.family}`);
        println(`hashSans.status: ${hashSans.status}`);

        await hashSans.load().then