diff options
author | Gary Ye <garysye@gmail.com> | 2015-09-18 09:59:48 -0700 |
---|---|---|
committer | Oleg Gaidarenko <markelog@gmail.com> | 2015-10-12 18:08:13 +0300 |
commit | 03eaadb131df925d1072afd2496ee3b41d2f1fc6 (patch) | |
tree | a8a50cb39a8e470b7dd64682b2f60b07eb83e223 /test | |
parent | ee0854f85bd686b55757e8854a10480f23c928da (diff) | |
download | jquery-03eaadb131df925d1072afd2496ee3b41d2f1fc6.tar.gz jquery-03eaadb131df925d1072afd2496ee3b41d2f1fc6.zip |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/data/jquery-1.9.1.js | 2 | ||||
-rw-r--r-- | test/data/testinit.js | 4 | ||||
-rw-r--r-- | test/unit/event.js | 2 | ||||
-rw-r--r-- | test/unit/selector.js | 2 |
4 files changed, 5 insertions, 5 deletions
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 |