Skip to content

Commit 03eaadb

Browse files
garysyemarkelog
authored andcommitted
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
1 parent ee0854f commit 03eaadb

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ t( testName, selector, [ "array", "of", "ids" ] );
302302
Example:
303303

304304
```js
305-
t("Check for something", "//[a]", ["foo", "baar"]);
305+
t("Check for something", "//[a]", ["foo", "bar"]);
306306
```
307307

308308

src/event.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ jQuery.each( {
810810
related = event.relatedTarget,
811811
handleObj = event.handleObj;
812812

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

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 mousenter/leave call the handler if related is outside the target.
3528+
// For mouseenter/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/data/testinit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ this.q = function() {
3535
* @param {String} a - Assertion name
3636
* @param {String} b - Sizzle selector
3737
* @param {String} c - Array of ids to construct what is expected
38-
* @example t("Check for something", "//[a]", ["foo", "baar"]);
39-
* @result returns true if "//[a]" return two elements with the IDs 'foo' and 'baar'
38+
* @example t("Check for something", "//[a]", ["foo", "bar"]);
39+
* @result returns true if "//[a]" return two elements with the IDs 'foo' and 'bar'
4040
*/
4141
QUnit.assert.t = function( a, b, c ) {
4242
var f = jQuery( b ).get(),

test/unit/event.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ QUnit.test( "withinElement implemented with jQuery.contains()", function( assert
879879

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

882-
jQuery( "#jc-inner" ).trigger( "mousenter" );
882+
jQuery( "#jc-inner" ).trigger( "mouseenter" );
883883

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

test/unit/selector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ testIframe(
293293

294294
/**
295295
* Asserts that a select matches the given IDs
296-
* @example t("Check for something", "//[a]", ["foo", "baar"]);
296+
* @example t("Check for something", "//[a]", ["foo", "bar"]);
297297
* @param {String} a - Assertion name
298298
* @param {String} b - Sizzle selector
299299
* @param {Array} c - Array of ids to construct what is expected

0 commit comments

Comments
 (0)