Skip to content
Browse files

Adding test for #1182

  • Loading branch information...
1 parent 3c5340d commit a6b91166afd2c5030f13f5a35aa078f4b3394ceb @brandonaaron brandonaaron committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/jquery/coreTest.js
View
4 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:" ) {

0 comments on commit a6b9116

Please sign in to comment.
Something went wrong with that request. Please try again.