mirror of
https://github.com/jquery/jquery.git
synced 2026-01-09 14:18:03 -05:00
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:
@@ -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)" );
|
||||
} );
|
||||
|
||||
@@ -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" );
|
||||
|
||||
@@ -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" :
|
||||
|
||||
Reference in New Issue
Block a user