mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-04-01 09:56:43 +00:00
19 lines
549 B
HTML
19 lines
549 B
HTML
<!DOCTYPE html>
|
|
<script src="../testing.js"></script>
|
|
<script id=DOMContentLoaded>
|
|
let call1 = false;
|
|
let ex1 = null;
|
|
document.addEventListener('DOMContentLoaded', function(e) {
|
|
ex1 = e; // let's just capture this to make sure our lifetimes are working
|
|
testing.expectEqual(document, e.target);
|
|
call1 = true;
|
|
});
|
|
|
|
testing.onload(() => {
|
|
testing.expectEqual(document, ex1.target);
|
|
testing.expectEqual('DOMContentLoaded', ex1.type);
|
|
testing.expectEqual(true, call1);
|
|
});
|
|
testing.expectEqual(true, true);
|
|
</script>
|