X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=test%2Funit%2Fattributes.js;h=9b5411f08c7667ec92afaf1c7d1de5e521f8bc08;hb=d1285504fb636a077ae5b1e53e35959cc7faebc7;hp=e9880df2708b0e3273dbd85d559a85b66807f96f;hpb=aadc268abf555f0f1cc7c5bc05d0dc73b35cb705;p=jquery.git diff --git a/test/unit/attributes.js b/test/unit/attributes.js index e9880df..9b5411f 100644 --- a/test/unit/attributes.js +++ b/test/unit/attributes.js @@ -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' );