Backport changes for #7703

This commit is contained in:
Andreas Hocevar
2018-01-18 11:47:32 +01:00
parent f7a1aba38e
commit 9b0cd2a7c8
4 changed files with 15 additions and 14 deletions

View File

@@ -106,7 +106,7 @@ describe('ol.interaction.Draw', function() {
});
it('accepts a dragVertexDelay option', function() {
const draw = new Draw({
const draw = new ol.interaction.Draw({
source: source,
type: 'LineString',
dragVertexDelay: 42
@@ -431,7 +431,7 @@ describe('ol.interaction.Draw', function() {
const features = source.getFeatures();
expect(features).to.have.length(1);
const geometry = features[0].getGeometry();
expect(geometry).to.be.a(LineString);
expect(geometry).to.be.a(ol.geom.LineString);
expect(geometry.getCoordinates()).to.eql([[10, -20], [20, -10], [30, -20]]);
done();