Index: LayoutTests/fast/dom/exception-getting-event-handler.html |
diff --git a/LayoutTests/fast/dom/exception-getting-event-handler.html b/LayoutTests/fast/dom/exception-getting-event-handler.html |
index 672015775ce37356b510f31ef4fa162f4d6f9c45..854c663054519aa7fca3d747272fa4924585adbd 100644 |
--- a/LayoutTests/fast/dom/exception-getting-event-handler.html |
+++ b/LayoutTests/fast/dom/exception-getting-event-handler.html |
@@ -11,7 +11,7 @@ function loaded() { |
var o = {}; |
o.__defineGetter__("handleEvent", function() { throw 42; }); |
var div = document.getElementById("div"); |
- div.onkeydown = o; |
+ div.addEventListener('keydown', o); |
var event = document.createEvent("KeyboardEvent"); |
event.initKeyboardEvent("keydown", true, true, null, "Enter", ""); |
div.dispatchEvent(event); |