Rename _ol_events_Event_ to Event
This commit is contained in:
committed by
Frederic Junod
parent
9622c64bc6
commit
1cc682e488
@@ -1,7 +1,7 @@
|
||||
import _ol_Map_ from '../../../../src/ol/Map.js';
|
||||
import _ol_MapBrowserEvent_ from '../../../../src/ol/MapBrowserEvent.js';
|
||||
import _ol_View_ from '../../../../src/ol/View.js';
|
||||
import _ol_events_Event_ from '../../../../src/ol/events/Event.js';
|
||||
import Event from '../../../../src/ol/events/Event.js';
|
||||
import _ol_interaction_Interaction_ from '../../../../src/ol/interaction/Interaction.js';
|
||||
describe('ol.interaction.KeyboardPan', function() {
|
||||
var map;
|
||||
@@ -27,7 +27,7 @@ describe('ol.interaction.KeyboardPan', function() {
|
||||
var event = new _ol_MapBrowserEvent_('keydown', map, {
|
||||
type: 'keydown',
|
||||
target: map.getTargetElement(),
|
||||
preventDefault: _ol_events_Event_.prototype.preventDefault
|
||||
preventDefault: Event.prototype.preventDefault
|
||||
});
|
||||
event.originalEvent.keyCode = 40; // DOWN
|
||||
map.handleMapBrowserEvent(event);
|
||||
|
||||
Reference in New Issue
Block a user