Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / exception-getting-event-handler.html
blob854c663054519aa7fca3d747272fa4924585adbd
1 <html>
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>
5 <hr>
6 <script>
7 if (window.testRunner)
8 testRunner.dumpAsText();
10 function loaded() {
11 var o = {};
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);
19 </script>
20 <div id="div">PASS: You didn't crash.</div>
21 </body>
22 </html>