ladybird/Tests/LibWeb/Text/input/base/link-element-base.html
Timothy Flynn c9cbaeb59d LibWeb: Convert some sync tests to be async
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.
2024-10-03 07:07:28 -04:00

18 lines
488 B
HTML

<!DOCTYPE html>
<html>
<head>
<base href="..">
<link rel="stylesheet" href="body-background-color-red.css">
</head>
<body>
<script src="include.js"></script>
<script>
asyncTest(done => {
window.onload = () => {
println("document background: " + getComputedStyle(document.body).backgroundColor);
done();
};
});
</script>
</body>
</html>