aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Sampson <jjdsampson@gmail.com>2012-10-11 15:30:51 -0300
committerDave Methvin <dave.methvin@gmail.com>2012-10-20 14:58:19 -0400
commit144b8bfeadc5316656105e1a10a31ba5348ef5d6 (patch)
tree0c451c2830d1e9ff824456a639cf10ac0784bfb2
parent408e5e08c23dda11e6e7a7f8dc44c9e6fcbe870d (diff)
downloadjquery-144b8bfeadc5316656105e1a10a31ba5348ef5d6.tar.gz
jquery-144b8bfeadc5316656105e1a10a31ba5348ef5d6.zip
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.
-rw-r--r--test/unit/attributes.js2
1 files changed, 1 insertions, 1 deletions
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("<input name='id' name='name' /><input id='target' name='target' />").appendTo("#testForm");
+ var extras = jQuery("<input id='id' name='id' /><input id='name' name='name' /><input id='target' name='target' />").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" );