From: Brandon Aaron Date: Thu, 31 May 2007 16:49:49 +0000 (+0000) Subject: Adding test for #1182 X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=a6b91166afd2c5030f13f5a35aa078f4b3394ceb;hp=3c5340d146100dab8c69d2c2c1925adca827342a;p=jquery.git Adding test for #1182 --- diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js index ad5a30d..37fe73b 100644 --- a/src/jquery/coreTest.js +++ b/src/jquery/coreTest.js @@ -225,7 +225,7 @@ test("attr(Hash)", function() { }); test("attr(String, Object)", function() { - expect(7); + expect(8); var div = $("div"); div.attr("foo", "bar"); var pass = true; @@ -246,6 +246,8 @@ test("attr(String, Object)", function() { ok( document.getElementById('text1').readOnly == true, 'Set readonly attribute' ); $("#text1").attr('readonly', false); ok( document.getElementById('text1').readOnly == false, 'Set readonly attribute' ); + $("#name").attr('maxlength', '5'); + ok( document.getElementById('name').maxLength == '5', 'Set maxlength attribute' ); }); if ( location.protocol != "file:" ) {