Commit f8b27f16 authored by Richard Gibson's avatar Richard Gibson

Ref 65a66489: oldIE handholding for native event tests

parent 58b8535d
......@@ -1490,7 +1490,7 @@ test("jQuery.Event( type, props )", function() {
test("jQuery.Event properties", function(){
expect(12);
var handler,
var handler, event,
$structure = jQuery("<div id='ancestor'><p id='delegate'><span id='target'>shiny</span></p></div>"),
$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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment