Skip to content

Commit

Permalink
Remove some Element.Event specs.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpojer committed Aug 19, 2011
1 parent 0f4697a commit 8f58b9e
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions 1.4client/Element/Element.Event.js
Expand Up @@ -20,23 +20,6 @@ describe('Element.Event.js', function(){
return el.set(props);
};

it('should allow base to be a function', function(){
var callback = jasmine.createSpy('myClick');

Element.Events.myClick = {
base: function(){
return 'click';
}
};

var div = createElement('div').addEvent('myClick', callback).inject(document.body);

simulateEvent('click', [{}, div], function(){
expect(callback).toHaveBeenCalled();
div.destroy();
});
});

it('should pass the name of the custom event to the callbacks', function(){
var callbacks = 0;
var callback = jasmine.createSpy();
Expand All @@ -47,10 +30,7 @@ describe('Element.Event.js', function(){
}
Element.Events.customEvent = {

base: function(type){
expect(type).toEqual('customEvent');
return 'click';
},
base: 'click',

condition: function(event, type){
fn(null, type);
Expand Down

0 comments on commit 8f58b9e

Please sign in to comment.