Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(350)

Unified Diff: LayoutTests/fast/dom/exception-getting-event-handler.html

Issue 22687002: Treat non-callable input as null for EventHandler attributes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix nit Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698