Skip to content

Commit e73a67f

Browse files
committed
Event: fix incorrect test
Which was revealed by 03eaadb commit, also do not try to fix typos in data/jquery version Cherry-picked from d923100
1 parent 4e3f971 commit e73a67f

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

test/data/jquery-1.9.1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3525,7 +3525,7 @@ jQuery.each( {
35253525
related = event.relatedTarget,
35263526
handleObj = event.handleObj;
35273527

3528-
// For mouseenter/leave call the handler if related is outside the target.
3528+
// For mousenter/leave call the handler if related is outside the target.
35293529
// NB: No relatedTarget if the mouse left/entered the browser window
35303530
if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {
35313531
event.type = handleObj.origType;

test/unit/event.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -877,16 +877,10 @@ QUnit.test( "withinElement implemented with jQuery.contains()", function( assert
877877
jQuery( "#qunit-fixture" ).append( "<div id='jc-outer'><div id='jc-inner'></div></div>" );
878878

879879
jQuery( "#jc-outer" ).on( "mouseenter mouseleave", function( event ) {
880-
881880
assert.equal( this.id, "jc-outer", this.id + " " + event.type );
882-
883-
} ).trigger( "mouseenter" );
881+
} );
884882

885883
jQuery( "#jc-inner" ).trigger( "mouseenter" );
886-
887-
jQuery( "#jc-outer" ).off( "mouseenter mouseleave" ).remove();
888-
jQuery( "#jc-inner" ).remove();
889-
890884
} );
891885

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

0 commit comments

Comments
 (0)