Skip to content

Commit ef6cd83

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 Cherry-picked from 03eaadb Closes gh-2613 Closes gh-2601
1 parent 7e78c2e commit ef6cd83

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
@@ -296,7 +296,7 @@ t( testName, selector, [ "array", "of", "ids" ] );
296296
Example:
297297

298298
```js
299-
t("Check for something", "//[a]", ["foo", "baar"]);
299+
t("Check for something", "//[a]", ["foo", "bar"]);
300300
```
301301

302302

src/event.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ jQuery.each( {
893893
related = event.relatedTarget,
894894
handleObj = event.handleObj;
895895

896-
// For mousenter/leave call the handler if related is outside the target.
896+
// For mouseenter/leave call the handler if related is outside the target.
897897
// NB: No relatedTarget if the mouse left/entered the browser window
898898
if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {
899899
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
@@ -882,7 +882,7 @@ QUnit.test( "withinElement implemented with jQuery.contains()", function( assert
882882

883883
} ).trigger( "mouseenter" );
884884

885-
jQuery( "#jc-inner" ).trigger( "mousenter" );
885+
jQuery( "#jc-inner" ).trigger( "mouseenter" );
886886

887887
jQuery( "#jc-outer" ).off( "mouseenter mouseleave" ).remove();
888888
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)