Tests: fix typos

Closes gh-2927
This commit is contained in:
William Robinet 2016-02-17 16:34:24 +01:00 committed by Dave Methvin
parent 615d92517b
commit 12038c7234
2 changed files with 3 additions and 3 deletions

View File

@ -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( {

View File

@ -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: {}