From a6b91166afd2c5030f13f5a35aa078f4b3394ceb Mon Sep 17 00:00:00 2001 From: Brandon Aaron Date: Thu, 31 May 2007 16:49:49 +0000 Subject: [PATCH 1/1] Adding test for #1182 --- src/jquery/coreTest.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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:" ) { -- 1.7.10.4