Skip to content

Commit

Permalink
Tests:Docs: Fix various typos
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
garysye authored and markelog committed Oct 12, 2015
1 parent 7e78c2e commit ef6cd83
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -296,7 +296,7 @@ t( testName, selector, [ "array", "of", "ids" ] );
Example:

```js
t("Check for something", "//[a]", ["foo", "baar"]);
t("Check for something", "//[a]", ["foo", "bar"]);
```


Expand Down
2 changes: 1 addition & 1 deletion src/event.js
Expand Up @@ -893,7 +893,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;
Expand Down
2 changes: 1 addition & 1 deletion test/data/jquery-1.9.1.js
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions test/data/testinit.js
Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion test/unit/event.js
Expand Up @@ -882,7 +882,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();
Expand Down
2 changes: 1 addition & 1 deletion test/unit/selector.js
Expand Up @@ -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
Expand Down

0 comments on commit ef6cd83

Please sign in to comment.