aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2015-10-12 18:37:04 +0300
committerOleg Gaidarenko <markelog@gmail.com>2015-10-12 18:37:04 +0300
commitd92310050ca7bf0b33825d64e052f9a8809c3e9e (patch)
treeae76c629f0ca500c9abd479b80212fdcd0c38590
parent0c34e688439713725d4215c63bc4cf876d8d0423 (diff)
downloadjquery-d92310050ca7bf0b33825d64e052f9a8809c3e9e.tar.gz
jquery-d92310050ca7bf0b33825d64e052f9a8809c3e9e.zip
Event: fix incorrect test
Which was revealed by 03eaadb131df925d1072afd2496ee3b41d2f1fc6 commit, also do not try to fix typos in data/jquery version
-rw-r--r--test/data/jquery-1.9.1.js2
-rw-r--r--test/unit/event.js8
2 files changed, 2 insertions, 8 deletions
diff --git a/test/data/jquery-1.9.1.js b/test/data/jquery-1.9.1.js
index 81bdf19f3..80c97a226 100644
--- a/test/data/jquery-1.9.1.js
+++ b/test/data/jquery-1.9.1.js
@@ -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;
diff --git a/test/unit/event.js b/test/unit/event.js
index e66b3e637..ebaf42f6b 100644
--- a/test/unit/event.js
+++ b/test/unit/event.js
@@ -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 ) {