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