Skip to content

Commit

Permalink
Added spec for button.set('type', 'button')
Browse files Browse the repository at this point in the history
  • Loading branch information
ibolmo committed Nov 29, 2011
1 parent 4fcb6c3 commit da71982
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions 1.4client/Element/Element.js
Expand Up @@ -29,6 +29,14 @@ describe('Element', function(){


}); });


describe('type', function(){

it('should set the type of a button', function(){
expect(new Element('button', {type: 'button'}).get('type')).toEqual('button');
});

});

}); });


describe('Element.get', function(){ describe('Element.get', function(){
Expand Down

0 comments on commit da71982

Please sign in to comment.