Remove getter for down_

This commit is contained in:
tsauerwein
2015-01-30 09:23:44 +01:00
parent 9cc8390dfd
commit 9a841583db
2 changed files with 10 additions and 15 deletions

View File

@@ -96,22 +96,22 @@ describe('ol.MapBrowserEventHandler', function() {
});
describe('#getDown()', function() {
describe('#down_', function() {
var handler;
beforeEach(function() {
handler = new ol.MapBrowserEventHandler(new ol.Map({}));
});
it('returns null if no "down" type event has been handled', function() {
expect(handler.getDown()).to.be(null);
it('is null if no "down" type event has been handled', function() {
expect(handler.down_).to.be(null);
});
it('returns an event after handlePointerDown_ has been called', function() {
it('is an event after handlePointerDown_ has been called', function() {
var event = new ol.pointer.PointerEvent('pointerdown',
new goog.events.BrowserEvent({}));
handler.handlePointerDown_(event);
expect(handler.getDown()).to.be(event);
expect(handler.down_).to.be(event);
});
});