mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-14 07:02:54 +00:00
The events tested here are decidedly async. We also can't really write sync tests of the form "test(async () => {})". Nothing will await the async callback.
13 lines
426 B
HTML
13 lines
426 B
HTML
<script src="include.js"></script>
|
|
<script>
|
|
asyncTest(done => {
|
|
globalThis.done = done;
|
|
|
|
let link = document.createElement("link");
|
|
link.setAttribute("rel", "preload");
|
|
link.setAttribute("href", "valid.css");
|
|
link.setAttribute("as", "style");
|
|
link.setAttribute("onload", "println('link element onload'); done();");
|
|
document.head.appendChild(link);
|
|
});
|
|
</script>
|