Skip to content

Commit

Permalink
add unit test for input
Browse files Browse the repository at this point in the history
  • Loading branch information
client9 committed Apr 23, 2010
1 parent 528d62d commit 5e46d2c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions specs/html/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,9 @@ test('HTMLInputElement', function() {
equals(a.checked, false, 'set checked is still false');
equals(a.getAttribute('checked'), '', 'getAttribte(checked) is null');
equals(a.hasAttribute('checked'), true, 'hasAttribute(checked) is false');
a.defaultChecked = false
equals(a.defaultChecked, false, 'set defaultChecked value is false');
equals(a.hasAttribute('checked'), false, 'hasAttribute(checked) is false');

equals(a.useMap, '', 'useMap is false');
equals(typeof a.useMap, 'string', 'default useMap value is boolean');
Expand Down

0 comments on commit 5e46d2c

Please sign in to comment.