Skip to content

Commit

Permalink
fix test case for val()
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Apr 13, 2013
1 parent e3b1ba8 commit df8044d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/attributes-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ sink('Element attributes', function (test, ok) {
})
})

test('setting & getting attributes', 10, function () {
test('setting & getting attributes', function (done) {
ok($('a#twitter').attr('href') == 'http://twitter.com/', 'retrieves "href" attribute from anchor')
ok($('a#hrefrel').attr('href') == '/relative', 'retrieves relative "href" attribute from anchor')
ok($('a#hrefname').attr('href') == '#name', 'retrieves plain #name "href" attribute from anchor')
Expand All @@ -139,6 +139,8 @@ sink('Element attributes', function (test, ok) {
ok(input.val() == 'eyoeyo', 'val(val) can set value on input')
input.val(1234)
ok(input.val() == '1234', 'val(val) can set number value on input')

done()
})

test('setting attributes using object', 2, function () {
Expand Down

0 comments on commit df8044d

Please sign in to comment.