Move inflateCoordinates into ol.geom.flat
This commit is contained in:
@@ -35,20 +35,20 @@ describe('ol.geom', function() {
|
||||
|
||||
});
|
||||
|
||||
describe('ol.geom.inflateCoordinates', function() {
|
||||
describe('ol.geom.flat.inflateCoordinates', function() {
|
||||
|
||||
it('inflates coordinates', function() {
|
||||
var coordinates = ol.geom.inflateCoordinates([1, 2, 3, 4], 0, 4, 2);
|
||||
var coordinates = ol.geom.flat.inflateCoordinates([1, 2, 3, 4], 0, 4, 2);
|
||||
expect(coordinates).to.eql([[1, 2], [3, 4]]);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
describe('ol.geom.inflateCoordinatess', function() {
|
||||
describe('ol.geom.flat.inflateCoordinatess', function() {
|
||||
|
||||
it('inflates arrays of coordinates', function() {
|
||||
var coordinatess = ol.geom.inflateCoordinatess([1, 2, 3, 4, 5, 6, 7, 8],
|
||||
0, [4, 8], 2);
|
||||
var coordinatess = ol.geom.flat.inflateCoordinatess(
|
||||
[1, 2, 3, 4, 5, 6, 7, 8], 0, [4, 8], 2);
|
||||
expect(coordinatess).to.eql([[[1, 2], [3, 4]], [[5, 6], [7, 8]]]);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user