Commit f50224d6 authored by Jörn Zaefferer's avatar Jörn Zaefferer

Added test to verify bug #160, had to modify fixture (index.html)

parent 06ef8c06
...@@ -32,8 +32,8 @@ ...@@ -32,8 +32,8 @@
<p id="first">Try them out:</p> <p id="first">Try them out:</p>
<ul id="firstUL"></ul> <ul id="firstUL"></ul>
<ol id="empty"></ol> <ol id="empty"></ol>
<form id="form"> <form id="form" action="formaction">
<input type="text" value="Test" id="text1"/> <input type="text" value="Test" name="action" id="text1"/>
<input type="text" value="Test" id="text2" disabled="disabled"/> <input type="text" value="Test" id="text2" disabled="disabled"/>
<input type="radio" name="radio1" id="radio1"/> <input type="radio" name="radio1" id="radio1"/>
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<input type="checkbox" name="check" id="check2"/> <input type="checkbox" name="check" id="check2"/>
<input type="hidden" name="hidden" id="hidden1"/> <input type="hidden" name="hidden" id="hidden1"/>
<input type="text" style="display:none;" id="hidden2"/> <input type="text" style="display:none;" name="foo[bar]" id="hidden2"/>
<input type="text" id="name" name="name" value="name" /> <input type="text" id="name" name="name" value="name" />
......
...@@ -390,6 +390,8 @@ jQuery.fn = jQuery.prototype = { ...@@ -390,6 +390,8 @@ jQuery.fn = jQuery.prototype = {
* @test ok( $('#en').attr('lang') == "en", 'Check for lang attribute' ); * @test ok( $('#en').attr('lang') == "en", 'Check for lang attribute' );
* @test ok( $('#simon').attr('class') == "blog link", 'Check for class attribute' ); * @test ok( $('#simon').attr('class') == "blog link", 'Check for class attribute' );
* @test ok( $('#name').attr('name') == "name", 'Check for name attribute' ); * @test ok( $('#name').attr('name') == "name", 'Check for name attribute' );
* @test ok( $('#text1').attr('name') == "action", 'Check for name attribute' );
* @test ok( $('#form').attr('action') == "formaction", 'Check for action attribute' );
* *
* @name attr * @name attr
* @type Object * @type Object
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment