aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Swedberg <karl@englishrules.com>2009-12-14 23:56:01 +0800
committerJohn Resig <jeresig@gmail.com>2009-12-18 03:58:16 +0800
commitaa81bb5e458efd25981933c339ac1a0090e6eb0f (patch)
tree77817006c3ff00725fd1d25c2f0b8f5d29d632cb
parent1d921e21714ab98421abaee1e1003b4497a950f9 (diff)
downloadjquery-aa81bb5e458efd25981933c339ac1a0090e6eb0f.tar.gz
jquery-aa81bb5e458efd25981933c339ac1a0090e6eb0f.zip
added a couple missing semicolons and fixed a typo in the comments
-rw-r--r--test/unit/attributes.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/attributes.js b/test/unit/attributes.js
index 763f1656d..cb489804d 100644
--- 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);
- // 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' );
@@ -70,7 +70,7 @@ if ( !isLocal ) {
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");
});
@@ -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" );
-}
+};
test("addClass(String)", function() {
testAddClass(bareObj);