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 (from parent 1:
1d921e2
)
added a couple missing semicolons and fixed a typo in the comments
author
Karl Swedberg
<karl@englishrules.com>
Mon, 14 Dec 2009 15:56:01 +0000
(23:56 +0800)
committer
John Resig
<jeresig@gmail.com>
Thu, 17 Dec 2009 19:58:16 +0000
(
03:58
+0800)
test/unit/attributes.js
patch
|
blob
|
history
diff --git
a/test/unit/attributes.js
b/test/unit/attributes.js
index
763f165
..
cb48980
100644
(file)
--- a/
test/unit/attributes.js
+++ b/
test/unit/attributes.js
@@
-6,7
+6,7
@@
var functionReturningObj = function(value) { return (function() { return value;
test("attr(String)", function() {
expect(28);
test("attr(String)", function() {
expect(28);
- // This one sometimes fails randomally ?!
+ // This one sometimes fails randomly ?!
equals( jQuery('#text1').attr('value'), "Test", 'Check for value attribute' );
equals( jQuery('#text1').attr('value', "Test2").attr('defaultValue'), "Test", 'Check for defaultValue attribute' );
equals( jQuery('#text1').attr('value'), "Test", 'Check for value attribute' );
equals( jQuery('#text1').attr('value', "Test2").attr('defaultValue'), "Test", 'Check for defaultValue attribute' );
@@
-70,7
+70,7
@@
if ( !isLocal ) {
test("attr(String, Function)", function() {
expect(2);
test("attr(String, Function)", function() {
expect(2);
- equals( jQuery('#text1').attr('value', function() { return this.id })[0].value, "text1", "Set value from id" );
+ equals( jQuery('#text1').attr('value', function() { return this.id ;})[0].value, "text1", "Set value from id" );
equals( jQuery('#text1').attr('title', function(i) { return i }).attr('title'), "0", "Set value with an index");
});
equals( jQuery('#text1').attr('title', function(i) { return i }).attr('title'), "0", "Set value with an index");
});
@@
-299,7
+299,7
@@
var testAddClass = function(valueObj) {
var j = jQuery("#nonnodes").contents();
j.addClass( valueObj("asdf") );
ok( j.hasClass("asdf"), "Check node,textnode,comment for addClass" );
var j = jQuery("#nonnodes").contents();
j.addClass( valueObj("asdf") );
ok( j.hasClass("asdf"), "Check node,textnode,comment for addClass" );
-}
+};
test("addClass(String)", function() {
testAddClass(bareObj);
test("addClass(String)", function() {
testAddClass(bareObj);