]> source.dussan.org Git - jquery.git/commitdiff
Tests: fix typos
authorWilliam Robinet <william.robinet@conostix.com>
Wed, 17 Feb 2016 15:34:24 +0000 (16:34 +0100)
committerDave Methvin <dave.methvin@gmail.com>
Wed, 17 Feb 2016 19:13:45 +0000 (14:13 -0500)
Closes gh-2927

test/unit/attributes.js
test/unit/core.js

index f691e31ee5399294c97b45528be7acf6d27b7a93..6ba64060e0cf294818d6cd718107ce54e08e4c14 100644 (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." );
 
        $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( "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( "<div/>" ).appendTo( "#qunit-fixture" ).css( {
index 4f77e06261c0ad633dc2daf6092a2f6709a73990..accba6bd681406103708caa56ca2bc1f3621c7a3 100644 (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
                // 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: {}