X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjquery%2FcoreTest.js;h=8d7e9f89c258a38d7e259dcf0beb5b2cb74680d7;hb=b5bf00a37368baf69595434c0329f869b9ca18e9;hp=d829d3092a67382a7307bd74301fe29d8990b60d;hpb=c0cc8edd5dc9742291dcf353e31fe02125146793;p=jquery.git
diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js
index d829d30..8d7e9f8 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:" ) {
@@ -356,7 +358,7 @@ test("wrap(String|Element)", function() {
});
test("append(String|Element|Array<Element>|jQuery)", function() {
- expect(16);
+ expect(17);
var defaultText = 'Try them out:'
var result = $('#first').append('buga');
ok( result.text() == defaultText + 'buga', 'Check if text appending works' );
@@ -405,7 +407,7 @@ test("append(String|Element|Array<Element>|jQuery)", function() {
ok( pass, "Test for appending a DOM node to the contents of an IFrame" );
reset();
- $('