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.
17 lines
509 B
HTML
17 lines
509 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<link rel="stylesheet" href="body-background-color-red.css" media="print" onload="this.media='all'">
|
|
</head>
|
|
<body>
|
|
<script src="include.js"></script>
|
|
<script>
|
|
asyncTest(done => {
|
|
window.onload = function () {
|
|
println("document background: " + getComputedStyle(document.body).backgroundColor);
|
|
done();
|
|
};
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|