Permalink
Browse files

Added spec for button.set('type', 'button')

  • Loading branch information...
1 parent 4fcb6c3 commit da71982a8e7df345663abffd14f871c9f44bb220 @ibolmo ibolmo committed Nov 29, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 1.4client/Element/Element.js
@@ -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(){

0 comments on commit da71982

Please sign in to comment.