Skip to content

Commit e4d4dd8

Browse files
studystillmgol
andauthored
Docs: Fix some minor issues in comments
Changes: 1. Eliminate mentions of Karma. 2. Replace `"root granchild"` with `"root grandchild"`. 3. Collapse duplicate "the the" & "with with" into single words. Closes jquerygh-5662 Signed-off-by: studystill <chenghuiyue@outlook.com> Co-authored-by: Michał Gołębiowski-Owczarek <m.goleb@gmail.com>
1 parent 9c84195 commit e4d4dd8

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

test/unit/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1611,7 +1611,7 @@ QUnit.test( "jQuery.contains in SVG (jQuery trac-10832)", function( assert ) {
16111611

16121612
assert.ok( jQuery.contains( svg, svg.firstChild ), "root child" );
16131613
assert.ok( jQuery.contains( svg.firstChild, svg.firstChild.firstChild ), "element child" );
1614-
assert.ok( jQuery.contains( svg, svg.firstChild.firstChild ), "root granchild" );
1614+
assert.ok( jQuery.contains( svg, svg.firstChild.firstChild ), "root grandchild" );
16151615
assert.ok( !jQuery.contains( svg.firstChild.firstChild, svg.firstChild ),
16161616
"parent (negative)" );
16171617
} );

test/unit/event.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,9 +1672,9 @@ QUnit.test( ".on()/.off()", function( assert ) {
16721672

16731673
// Test binding with different this object, event data, and trigger data
16741674
jQuery( "#body" ).on( "click", "#foo", true, function( e, data ) {
1675-
assert.equal( e.data, true, "on with with different this object, event data, and trigger data" );
1676-
assert.equal( this.foo, "bar", "on with with different this object, event data, and trigger data" );
1677-
assert.equal( data, true, "on with with different this object, event data, and trigger data" );
1675+
assert.equal( e.data, true, "on with different this object, event data, and trigger data" );
1676+
assert.equal( this.foo, "bar", "on with different this object, event data, and trigger data" );
1677+
assert.equal( data, true, "on with different this object, event data, and trigger data" );
16781678
}.bind( { "foo": "bar" } ) );
16791679
jQuery( "#foo" ).trigger( "click", true );
16801680
jQuery( "#body" ).off( "click", "#foo" );

test/unit/manipulation.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2343,8 +2343,7 @@ testIframe(
23432343

23442344
// We need to simulate cross-domain requests with the feature that
23452345
// both 127.0.0.1 and localhost point to the mock http server.
2346-
// Skip the the test if we are not in localhost but make sure we run
2347-
// it in Karma.
2346+
// Skip the test if we are not in localhost.
23482347
QUnit[
23492348
includesModule( "ajax" ) && location.hostname === "localhost" ?
23502349
"test" :

0 commit comments

Comments
 (0)