From f8b27f16ba748627fd8e56965047d6d1ebd90b4b Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Thu, 4 Apr 2013 19:26:08 -0400 Subject: [PATCH] Ref 65a66489: oldIE handholding for native event tests --- test/unit/event.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/unit/event.js b/test/unit/event.js index 070f75a0b..d38dbb8d1 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -1490,7 +1490,7 @@ test("jQuery.Event( type, props )", function() { test("jQuery.Event properties", function(){ expect(12); - var handler, + var handler, event, $structure = jQuery("

shiny

"), $target = $structure.find("#target"); @@ -1517,12 +1517,19 @@ test("jQuery.Event properties", function(){ handler = function( e ) { strictEqual( e.isTrigger, undefined, "native event at " + this.id ); + event = e; }; $target.one( "click", handler ); $target[0].onclick = function( e ) { strictEqual( e.isTrigger, undefined, "native event at target (native handler)" ); + $target[0].onclick = null; }; fireNative( $target[0], "click" ); + + // Make sure that even oldIE executes the inline handler + if ( $target[0].onclick ) { + $target[0].onclick( event ); + } }); test(".delegate()/.undelegate()", function() { -- 2.39.5