Allow instanceof checks for geometries

This commit is contained in:
Tim Schaub
2013-02-19 23:21:05 -07:00
parent 083404bd58
commit 0015e466dc
11 changed files with 30 additions and 6 deletions
+2
View File
@@ -11,6 +11,7 @@ describe('ol.geom.Polygon', function() {
it('creates a polygon from an array', function() {
var poly = new ol.geom.Polygon([outer, inner1, inner2]);
expect(poly).toBeA(ol.geom.Polygon);
expect(poly).toBeA(ol.geom.Geometry);
});
it('throws when given mismatched dimension', function() {
@@ -64,4 +65,5 @@ describe('ol.geom.Polygon', function() {
});
goog.require('ol.geom.Geometry');
goog.require('ol.geom.Polygon');