From: Jonathan Sampson Date: Thu, 11 Oct 2012 18:30:51 +0000 (-0300) Subject: Fix attribute names in aliased form property test. Close gh-951. X-Git-Tag: 1.9.0b1~165 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=144b8bfeadc5316656105e1a10a31ba5348ef5d6;p=jquery.git Fix attribute names in aliased form property test. Close gh-951. Test expects input elements having name='id', name='name', and name='target'. Additionally, these should have id='id', id='name', and id='target' respectively. No element was provided with id='id' or name='id', but rather one element had two name attributes (illegal) with the values 'id' and 'name' respectively. --- diff --git a/test/unit/attributes.js b/test/unit/attributes.js index 1c878f37a..7795b88b5 100644 --- a/test/unit/attributes.js +++ b/test/unit/attributes.js @@ -73,7 +73,7 @@ test( "attr(String)", function() { equal( jQuery("#foo").attr("height"), undefined, "Non existent height attribute should return undefined" ); // [7472] & [3113] (form contains an input with name="action" or name="id") - var extras = jQuery("").appendTo("#testForm"); + var extras = jQuery("").appendTo("#testForm"); equal( jQuery("#form").attr("action","newformaction").attr("action"), "newformaction", "Check that action attribute was changed" ); equal( jQuery("#testForm").attr("target"), undefined, "Retrieving target does not equal the input with name=target" ); equal( jQuery("#testForm").attr("target", "newTarget").attr("target"), "newTarget", "Set target successfully on a form" );