Skip to content

Commit

Permalink
Event: fix incorrect test
Browse files Browse the repository at this point in the history
Which was revealed by 03eaadb commit,
also do not try to fix typos in data/jquery version
  • Loading branch information
markelog committed Oct 12, 2015
1 parent 0c34e68 commit d923100
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion test/data/jquery-1.9.1.js
Original file line number Diff line number Diff line change
Expand Up @@ -3525,7 +3525,7 @@ jQuery.each( {
related = event.relatedTarget,
handleObj = event.handleObj;

// For mouseenter/leave call the handler if related is outside the target.
// For mousenter/leave call the handler if related is outside the target.
// NB: No relatedTarget if the mouse left/entered the browser window
if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {
event.type = handleObj.origType;
Expand Down
8 changes: 1 addition & 7 deletions test/unit/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -874,16 +874,10 @@ QUnit.test( "withinElement implemented with jQuery.contains()", function( assert
jQuery( "#qunit-fixture" ).append( "<div id='jc-outer'><div id='jc-inner'></div></div>" );

jQuery( "#jc-outer" ).on( "mouseenter mouseleave", function( event ) {

assert.equal( this.id, "jc-outer", this.id + " " + event.type );

} ).trigger( "mouseenter" );
} );

jQuery( "#jc-inner" ).trigger( "mouseenter" );

jQuery( "#jc-outer" ).off( "mouseenter mouseleave" ).remove();
jQuery( "#jc-inner" ).remove();

} );

QUnit.test( "mouseenter, mouseleave don't catch exceptions", function( assert ) {
Expand Down

0 comments on commit d923100

Please sign in to comment.