Move inflateCoordinates into ol.geom.flat

This commit is contained in:
Tom Payne
2013-11-12 12:22:29 +01:00
parent dc1ad7bb83
commit 16e5f238d2
8 changed files with 80 additions and 80 deletions
+5 -5
View File
@@ -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]]]);
});