mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-22 16:09:23 +00:00
17 lines
525 B
HTML
17 lines
525 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
asyncTest(done => {
|
|
const image = document.createElement("img");
|
|
image.onload = () => {
|
|
println(`loaded, width=${image.width}, height=${image.height}`);
|
|
done();
|
|
};
|
|
image.onerror = () => {
|
|
println("error :^(");
|
|
done();
|
|
};
|
|
|
|
image.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAABhCAIAAAABe4UxAAAABElEQVQAAAABnSTXkQAAAABJRU5ErkJggg==";
|
|
});
|
|
</script>
|