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
@@ -10,13 +10,6 @@ describe('ol.geom.LineString', function() {
expect(line).to.be.a(ol.geom.Geometry);
});
it('throws when given mismatched dimension', function() {
expect(function() {
var line = new ol.geom.LineString([[10, 20], [30, 40, 50]]);
line = line; // suppress gjslint warning about unused variable
}).to.throwException();
});
it('accepts shared vertices', function() {
var vertices = new ol.geom.SharedVertices();
var l1 = new ol.geom.LineString([[10, 20], [30, 40]], vertices);