Newer
Older
minerva / Tests / LibWeb / Text / input / HTML / document-close-iframe-load-event.html
@minerva minerva on 13 Jul 419 bytes Initial commit
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
    asyncTest(done => {
        const iframe = document.createElement('iframe');
        document.body.appendChild(iframe);
        iframe.contentDocument.open();
        iframe.onload = () => {
            println("Onload event fired");
            iframe.remove();
            done();
        };
        iframe.contentDocument.close();
    });
</script>