2025-03-18 19:28:35 +01:00
|
|
|
<!DOCTYPE html>
|
2024-03-01 00:58:51 +00:00
|
|
|
<test-element></test-element>
|
|
|
|
|
<script src="../include.js"></script>
|
|
|
|
|
<script>
|
|
|
|
|
test(() => {
|
2024-11-23 15:42:01 -07:00
|
|
|
removeTestErrorHandler()
|
|
|
|
|
window.addEventListener("error", (event) => { println(`${event.message}`); })
|
2024-03-01 00:58:51 +00:00
|
|
|
class TestElement extends HTMLElement {
|
|
|
|
|
constructor() {
|
|
|
|
|
super();
|
|
|
|
|
println("Entered TestElement constructor, throwing.");
|
|
|
|
|
throw "test";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
connectedCallback() {
|
|
|
|
|
println("connectedCallback");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
customElements.define("test-element", TestElement);
|
|
|
|
|
println("PASS! (Didn't crash)");
|
|
|
|
|
});
|
|
|
|
|
</script>
|