From 03eaadb131df925d1072afd2496ee3b41d2f1fc6 Mon Sep 17 00:00:00 2001 From: Gary Ye Date: Fri, 18 Sep 2015 09:59:48 -0700 Subject: [PATCH] Tests:Docs: Fix various typos * Changes "baar" to "bar" when used with "foo" in readme and comments of js files * mousenter -> mouseenter Thanks @garysye, @KimTaehee Closes gh-2613 Closes gh-2601 --- README.md | 2 +- src/event.js | 2 +- test/data/jquery-1.9.1.js | 2 +- test/data/testinit.js | 4 ++-- test/unit/event.js | 2 +- test/unit/selector.js | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 59728b0f7..de6e1bb82 100644 --- a/README.md +++ b/README.md @@ -302,7 +302,7 @@ t( testName, selector, [ "array", "of", "ids" ] ); Example: ```js -t("Check for something", "//[a]", ["foo", "baar"]); +t("Check for something", "//[a]", ["foo", "bar"]); ``` diff --git a/src/event.js b/src/event.js index 233fd4348..97dbf57b2 100644 --- a/src/event.js +++ b/src/event.js @@ -810,7 +810,7 @@ jQuery.each( { related = event.relatedTarget, handleObj = event.handleObj; - // For mousenter/leave call the handler if related is outside the target. + // For mouseenter/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/data/jquery-1.9.1.js b/test/data/jquery-1.9.1.js index 80c97a226..81bdf19f3 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 mousenter/leave call the handler if related is outside the target. + // For mouseenter/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/data/testinit.js b/test/data/testinit.js index 1815d8f7b..e88df966f 100644 --- a/test/data/testinit.js +++ b/test/data/testinit.js @@ -35,8 +35,8 @@ this.q = function() { * @param {String} a - Assertion name * @param {String} b - Sizzle selector * @param {String} c - Array of ids to construct what is expected - * @example t("Check for something", "//[a]", ["foo", "baar"]); - * @result returns true if "//[a]" return two elements with the IDs 'foo' and 'baar' + * @example t("Check for something", "//[a]", ["foo", "bar"]); + * @result returns true if "//[a]" return two elements with the IDs 'foo' and 'bar' */ QUnit.assert.t = function( a, b, c ) { var f = jQuery( b ).get(), diff --git a/test/unit/event.js b/test/unit/event.js index 797078361..e66b3e637 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -879,7 +879,7 @@ QUnit.test( "withinElement implemented with jQuery.contains()", function( assert } ).trigger( "mouseenter" ); - jQuery( "#jc-inner" ).trigger( "mousenter" ); + jQuery( "#jc-inner" ).trigger( "mouseenter" ); jQuery( "#jc-outer" ).off( "mouseenter mouseleave" ).remove(); jQuery( "#jc-inner" ).remove(); diff --git a/test/unit/selector.js b/test/unit/selector.js index 31ce852a6..a1f6abd03 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -293,7 +293,7 @@ testIframe( /** * Asserts that a select matches the given IDs - * @example t("Check for something", "//[a]", ["foo", "baar"]); + * @example t("Check for something", "//[a]", ["foo", "bar"]); * @param {String} a - Assertion name * @param {String} b - Sizzle selector * @param {Array} c - Array of ids to construct what is expected -- 2.39.5