remove trailing spaces in tests
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user