2 <body onload=
"loaded()">
3 <p>This test checks that an exception thrown when getting the
4 handleEvent property of an event listener does not crash.
</p>
8 testRunner
.dumpAsText();
12 o
.__defineGetter__("handleEvent", function() { throw 42; });
13 var div
= document
.getElementById("div");
14 div
.addEventListener('keydown', o
);
15 var event
= document
.createEvent("KeyboardEvent");
16 event
.initKeyboardEvent("keydown", true, true, null, "Enter", "");
17 div
.dispatchEvent(event
);
20 <div id=
"div">PASS: You didn't crash.
</div>