Merge pull request #4809 from fperucic/multpolygon-clone

Fix multipolygon clone.
This commit is contained in:
Tim Schaub authored and Andreas Hocevar committed 2016-03-04 09:24:23 +01:00
1 parent b4c4a81afb
commit e8cd5e322f
2 files changed
+10 -1

No files matched your search

+9
View File
@@ -88,6 +88,15 @@ describe('ol.geom.MultiPolygon', function() {
[[[3, 0], [4, 1], [5, 2], [5, 0]]]);
});
describe('#clone()', function() {
it('has the expected endss_', function() {
var clone = multiPolygon.clone();
expect(multiPolygon.endss_).to.eql(clone.endss_);
});
});
describe('#getCoordinates()', function() {
var cw = [[-180, -90], [-180, 90], [180, 90], [180, -90], [-180, -90]];