jquery core: Closes #5189. Added a generic function to handle getting/setting key-value/setting a hash.

This commit is contained in:
Ariel Flesler 2009-09-09 21:14:28 +00:00
parent aadc268abf
commit d1285504fb
4 changed files with 36 additions and 71 deletions

View file

@ -2,7 +2,10 @@ module("attributes");
test("attr(String)", function() {
expect(27);
// This one sometimes fails randomally ?!
equals( jQuery('#text1').attr('value'), "Test", 'Check for value attribute' );
equals( jQuery('#text1').attr('value', "Test2").attr('defaultValue'), "Test", 'Check for defaultValue attribute' );
equals( jQuery('#text1').attr('type'), "text", 'Check for type attribute' );
equals( jQuery('#radio1').attr('type'), "radio", 'Check for type attribute' );