From: William Robinet Date: Wed, 17 Feb 2016 15:34:24 +0000 (+0100) Subject: Tests: fix typos X-Git-Tag: 3.0.0-rc1~74 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=12038c7234ed808b2116a9f03c448c139d5fb9ae;p=jquery.git Tests: fix typos Closes gh-2927 --- diff --git a/test/unit/attributes.js b/test/unit/attributes.js index f691e31ee..6ba64060e 100644 --- a/test/unit/attributes.js +++ b/test/unit/attributes.js @@ -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." ); $img = jQuery( "" ).appendTo( "body" ); - assert.equal( $img.attr( "width" ), "215", "Retrieve width attribute an an element with display:none." ); - assert.equal( $img.attr( "height" ), "53", "Retrieve height 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 on an element with display:none." ); // Check for style support styleElem = jQuery( "
" ).appendTo( "#qunit-fixture" ).css( { diff --git a/test/unit/core.js b/test/unit/core.js index 4f77e0626..accba6bd6 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -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 // will evaluate true and enter the array copy block // 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 // replaced by an empty array. object: {}