From 4b9bed95436bb060e57a18a08a5b486f7b812c6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Zaefferer?= Date: Sun, 25 Mar 2007 12:07:59 +0000 Subject: [PATCH] Added test for #935 --- src/event/eventTest.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/event/eventTest.js b/src/event/eventTest.js index eebf2a92..7fc91b06 100644 --- a/src/event/eventTest.js +++ b/src/event/eventTest.js @@ -94,3 +94,14 @@ test("events don't work with iframes, see #939", function() { ok( true, "Event handling via jQuery's handler" ); }).click(); }); + +test("Event.data is a global event object", function() { + expect(3); + var counter = 0; + function selectOnChange(event) { + equals( event.data, counter++ ); + } + $("select").each(function(i){ + $(this).bind('change', i, selectOnChange); + }).trigger('change'); +}); \ No newline at end of file