mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Tests: fix typos
Closes gh-2927
This commit is contained in:
parent
615d92517b
commit
12038c7234
@ -128,8 +128,8 @@ QUnit.test( "attr(String)", function( assert ) {
|
|||||||
assert.equal( jQuery( option ).prop( "selected" ), true, "Make sure that a single option is selected, even when in an optgroup." );
|
assert.equal( jQuery( option ).prop( "selected" ), true, "Make sure that a single option is selected, even when in an optgroup." );
|
||||||
|
|
||||||
$img = jQuery( "<img style='display:none' width='215' height='53' src='data/1x1.jpg'/>" ).appendTo( "body" );
|
$img = jQuery( "<img style='display:none' width='215' height='53' src='data/1x1.jpg'/>" ).appendTo( "body" );
|
||||||
assert.equal( $img.attr( "width" ), "215", "Retrieve width attribute an an element with display:none." );
|
assert.equal( $img.attr( "width" ), "215", "Retrieve width attribute on an element with display:none." );
|
||||||
assert.equal( $img.attr( "height" ), "53", "Retrieve height attribute an an element with display:none." );
|
assert.equal( $img.attr( "height" ), "53", "Retrieve height attribute on an element with display:none." );
|
||||||
|
|
||||||
// Check for style support
|
// Check for style support
|
||||||
styleElem = jQuery( "<div/>" ).appendTo( "#qunit-fixture" ).css( {
|
styleElem = jQuery( "<div/>" ).appendTo( "#qunit-fixture" ).css( {
|
||||||
|
@ -1231,7 +1231,7 @@ QUnit.test( "jQuery.extend(true,{},{a:[], o:{}}); deep copy with array, followed
|
|||||||
// If "copyIsArray" doesn't get reset to false, the check
|
// If "copyIsArray" doesn't get reset to false, the check
|
||||||
// will evaluate true and enter the array copy block
|
// will evaluate true and enter the array copy block
|
||||||
// instead of the object copy block. Since the ternary in the
|
// instead of the object copy block. Since the ternary in the
|
||||||
// "copyIsArray" block will will evaluate to false
|
// "copyIsArray" block will evaluate to false
|
||||||
// (check if operating on an array with ), this will be
|
// (check if operating on an array with ), this will be
|
||||||
// replaced by an empty array.
|
// replaced by an empty array.
|
||||||
object: {}
|
object: {}
|
||||||
|
Loading…
Reference in New Issue
Block a user