remove trailing spaces in tests

This commit is contained in:
Éric Lemoine
2012-07-13 15:37:21 +02:00
parent c2a30f4ac4
commit dd5182c55c
3 changed files with 24 additions and 24 deletions
+7 -7
View File
@@ -17,28 +17,28 @@ describe('ol.handler.MouseWheel', function() {
});
});
describe('dispatching events', function() {
it('dispatches a mousewheel event', function() {
var handler = new ol.handler.MouseWheel(map, {});
goog.events.listen(map, 'mousewheel', listener.fn);
var evt = new goog.events.MouseWheelEvent(1, 'foo', 0, 1);
handler.handleMouseWheel(evt);
expect(listener.fn.calls[0].args[0].type).toBe('mousewheel');
expect(listener.fn.calls[0].args[0].originalEvent).toBe(evt);
});
it('calls the default action on the default control', function() {
var control = {handleEvent: jasmine.createSpy()};
map.setDefaultMouseWheelControl(control);
var handler = new ol.handler.MouseWheel(map, {});
handler.handleMouseWheel(new goog.events.MouseWheelEvent(1, 'foo', 0, 1));
expect(control.handleEvent).toHaveBeenCalled();
});
});
});