Transformed
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
|
||||
|
||||
goog.require('ol.geom.flat.deflate');
|
||||
import _ol_geom_flat_deflate_ from '../../../../../src/ol/geom/flat/deflate.js';
|
||||
|
||||
|
||||
describe('ol.geom.flat.deflate', function() {
|
||||
@@ -13,7 +11,7 @@ describe('ol.geom.flat.deflate', function() {
|
||||
});
|
||||
|
||||
it('flattens coordinates', function() {
|
||||
var offset = ol.geom.flat.deflate.coordinates(
|
||||
var offset = _ol_geom_flat_deflate_.coordinates(
|
||||
flatCoordinates, 0, [[1, 2], [3, 4]], 2);
|
||||
expect(offset).to.be(4);
|
||||
expect(flatCoordinates).to.eql([1, 2, 3, 4]);
|
||||
@@ -29,7 +27,7 @@ describe('ol.geom.flat.deflate', function() {
|
||||
});
|
||||
|
||||
it('flattens arrays of coordinates', function() {
|
||||
var ends = ol.geom.flat.deflate.coordinatess(flatCoordinates, 0,
|
||||
var ends = _ol_geom_flat_deflate_.coordinatess(flatCoordinates, 0,
|
||||
[[[1, 2], [3, 4]], [[5, 6], [7, 8]]], 2);
|
||||
expect(ends).to.eql([4, 8]);
|
||||
expect(flatCoordinates).to.eql([1, 2, 3, 4, 5, 6, 7, 8]);
|
||||
|
||||
Reference in New Issue
Block a user