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 gh-5662

Signed-off-by: studystill <chenghuiyue@outlook.com>
Co-authored-by: Michał Gołębiowski-Owczarek <m.goleb@gmail.com>
This commit is contained in:
studystill
2025-08-19 04:26:53 +08:00
committed by GitHub
parent 9c84195b94
commit e4d4dd81bf
3 changed files with 5 additions and 6 deletions

View File

@@ -1611,7 +1611,7 @@ QUnit.test( "jQuery.contains in SVG (jQuery trac-10832)", function( assert ) {
assert.ok( jQuery.contains( svg, svg.firstChild ), "root child" );
assert.ok( jQuery.contains( svg.firstChild, svg.firstChild.firstChild ), "element child" );
assert.ok( jQuery.contains( svg, svg.firstChild.firstChild ), "root granchild" );
assert.ok( jQuery.contains( svg, svg.firstChild.firstChild ), "root grandchild" );
assert.ok( !jQuery.contains( svg.firstChild.firstChild, svg.firstChild ),
"parent (negative)" );
} );

View File

@@ -1672,9 +1672,9 @@ QUnit.test( ".on()/.off()", function( assert ) {
// Test binding with different this object, event data, and trigger data
jQuery( "#body" ).on( "click", "#foo", true, function( e, data ) {
assert.equal( e.data, true, "on with with different this object, event data, and trigger data" );
assert.equal( this.foo, "bar", "on with with different this object, event data, and trigger data" );
assert.equal( data, true, "on with with different this object, event data, and trigger data" );
assert.equal( e.data, true, "on with different this object, event data, and trigger data" );
assert.equal( this.foo, "bar", "on with different this object, event data, and trigger data" );
assert.equal( data, true, "on with different this object, event data, and trigger data" );
}.bind( { "foo": "bar" } ) );
jQuery( "#foo" ).trigger( "click", true );
jQuery( "#body" ).off( "click", "#foo" );

View File

@@ -2343,8 +2343,7 @@ testIframe(
// We need to simulate cross-domain requests with the feature that
// both 127.0.0.1 and localhost point to the mock http server.
// Skip the the test if we are not in localhost but make sure we run
// it in Karma.
// Skip the test if we are not in localhost.
QUnit[
includesModule( "ajax" ) && location.hostname === "localhost" ?
"test" :