Ignore extra dimensions and pad with NaN for missing dimensions

This commit is contained in:
Tim Schaub
2013-08-18 09:57:26 -04:00
parent 9b90129b24
commit 0f9e269057
5 changed files with 22 additions and 29 deletions
-7
View File
@@ -14,13 +14,6 @@ describe('ol.geom.Polygon', function() {
expect(poly).to.be.a(ol.geom.Geometry);
});
it('throws when given mismatched dimension', function() {
expect(function() {
var poly = new ol.geom.Polygon([[[10, 20], [30, 40, 50]]]);
poly = poly; // suppress gjslint warning about unused variable
}).to.throwException();
});
it('accepts shared vertices', function() {
var vertices = new ol.geom.SharedVertices();
var p1 = new ol.geom.Polygon([outer], vertices);