Rename _ol_interaction_MouseWheelZoom_ to MouseWheelZoom
This commit is contained in:
@@ -4,14 +4,14 @@ import _ol_View_ from '../../../../src/ol/View.js';
|
||||
import Event from '../../../../src/ol/events/Event.js';
|
||||
import _ol_has_ from '../../../../src/ol/has.js';
|
||||
import Interaction from '../../../../src/ol/interaction/Interaction.js';
|
||||
import _ol_interaction_MouseWheelZoom_ from '../../../../src/ol/interaction/MouseWheelZoom.js';
|
||||
import MouseWheelZoom from '../../../../src/ol/interaction/MouseWheelZoom.js';
|
||||
|
||||
|
||||
describe('ol.interaction.MouseWheelZoom', function() {
|
||||
var map, interaction;
|
||||
|
||||
beforeEach(function() {
|
||||
interaction = new _ol_interaction_MouseWheelZoom_();
|
||||
interaction = new MouseWheelZoom();
|
||||
map = new Map({
|
||||
target: createMapDiv(100, 100),
|
||||
interactions: [interaction],
|
||||
@@ -66,7 +66,7 @@ describe('ol.interaction.MouseWheelZoom', function() {
|
||||
var origHasFirefox = _ol_has_.FIREFOX;
|
||||
_ol_has_.FIREFOX = true;
|
||||
map.once('postrender', function() {
|
||||
expect(interaction.mode_).to.be(_ol_interaction_MouseWheelZoom_.Mode_.TRACKPAD);
|
||||
expect(interaction.mode_).to.be(MouseWheelZoom.Mode_.TRACKPAD);
|
||||
_ol_has_.FIREFOX = origHasFirefox;
|
||||
done();
|
||||
});
|
||||
@@ -85,7 +85,7 @@ describe('ol.interaction.MouseWheelZoom', function() {
|
||||
var origHasFirefox = _ol_has_.FIREFOX;
|
||||
_ol_has_.FIREFOX = false;
|
||||
map.once('postrender', function() {
|
||||
expect(interaction.mode_).to.be(_ol_interaction_MouseWheelZoom_.Mode_.TRACKPAD);
|
||||
expect(interaction.mode_).to.be(MouseWheelZoom.Mode_.TRACKPAD);
|
||||
_ol_has_.FIREFOX = origHasFirefox;
|
||||
done();
|
||||
});
|
||||
|
||||
@@ -8,7 +8,7 @@ import _ol_has_ from '../../../src/ol/has.js';
|
||||
import {defaults as defaultInteractions} from '../../../src/ol/interaction.js';
|
||||
import DoubleClickZoom from '../../../src/ol/interaction/DoubleClickZoom.js';
|
||||
import Interaction from '../../../src/ol/interaction/Interaction.js';
|
||||
import _ol_interaction_MouseWheelZoom_ from '../../../src/ol/interaction/MouseWheelZoom.js';
|
||||
import MouseWheelZoom from '../../../src/ol/interaction/MouseWheelZoom.js';
|
||||
import _ol_interaction_PinchZoom_ from '../../../src/ol/interaction/PinchZoom.js';
|
||||
import TileLayer from '../../../src/ol/layer/Tile.js';
|
||||
import _ol_layer_Vector_ from '../../../src/ol/layer/Vector.js';
|
||||
@@ -482,7 +482,7 @@ describe('ol.Map', function() {
|
||||
options.mouseWheelZoom = true;
|
||||
var interactions = defaultInteractions(options);
|
||||
expect(interactions.getLength()).to.eql(1);
|
||||
expect(interactions.item(0)).to.be.a(_ol_interaction_MouseWheelZoom_);
|
||||
expect(interactions.item(0)).to.be.a(MouseWheelZoom);
|
||||
expect(interactions.item(0).constrainResolution_).to.eql(false);
|
||||
expect(interactions.item(0).useAnchor_).to.eql(true);
|
||||
interactions.item(0).setMouseAnchor(false);
|
||||
@@ -509,7 +509,7 @@ describe('ol.Map', function() {
|
||||
expect(interactions.getLength()).to.eql(2);
|
||||
expect(interactions.item(0)).to.be.a(_ol_interaction_PinchZoom_);
|
||||
expect(interactions.item(0).constrainResolution_).to.eql(true);
|
||||
expect(interactions.item(1)).to.be.a(_ol_interaction_MouseWheelZoom_);
|
||||
expect(interactions.item(1)).to.be.a(MouseWheelZoom);
|
||||
expect(interactions.item(1).constrainResolution_).to.eql(true);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user