Skip to content

Commit

Permalink
Adding test for jquery#1182
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonaaron committed May 31, 2007
1 parent 3c5340d commit a6b9116
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/jquery/coreTest.js
Expand Up @@ -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;
Expand All @@ -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:" ) {
Expand Down

0 comments on commit a6b9116

Please sign in to comment.