git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3c5340d
)
Adding test for #1182
author
Brandon Aaron
<brandon.aaron@gmail.com>
Thu, 31 May 2007 16:49:49 +0000
(16:49 +0000)
committer
Brandon Aaron
<brandon.aaron@gmail.com>
Thu, 31 May 2007 16:49:49 +0000
(16:49 +0000)
src/jquery/coreTest.js
patch
|
blob
|
history
diff --git
a/src/jquery/coreTest.js
b/src/jquery/coreTest.js
index
ad5a30d
..
37fe73b
100644
(file)
--- a/
src/jquery/coreTest.js
+++ b/
src/jquery/coreTest.js
@@
-225,7
+225,7
@@
test("attr(Hash)", function() {
});
test("attr(String, Object)", function() {
});
test("attr(String, Object)", function() {
- expect(7);
+ expect(8);
var div = $("div");
div.attr("foo", "bar");
var pass = true;
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' );
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:" ) {
});
if ( location.protocol != "file:" ) {