Added test for attr('checked', {true|false}) (bug #167)

This commit is contained in:
Jörn Zaefferer 2006-09-09 17:12:26 +00:00
parent 38fa3cfc34
commit da74bde0b7

View file

@ -435,6 +435,10 @@ jQuery.fn = jQuery.prototype = {
*
* @test $("#name").attr('name', 'something');
* ok( $("#name").name() == 'something', 'Set name attribute' );
* @test $("#check2").attr('checked', true);
* ok( document.getElementById('check2').checked == true, 'Set checked attribute' );
* $("#check2").attr('checked', false);
* ok( document.getElementById('check2').checked == false, 'Set checked attribute' );
*
* @name attr
* @type jQuery