From 45917504b099e4132437fbe3b23d70b2181cd138 Mon Sep 17 00:00:00 2001 From: Marc Jansen Date: Fri, 22 Jun 2012 09:18:12 +0200 Subject: [PATCH] Fix the geom tests to only use API methods. --- test/spec/api/geom/geom.test.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/test/spec/api/geom/geom.test.js b/test/spec/api/geom/geom.test.js index 9faf138b13..230e238bda 100644 --- a/test/spec/api/geom/geom.test.js +++ b/test/spec/api/geom/geom.test.js @@ -11,7 +11,7 @@ describe("ol.geom.geometry", function() { it("constructs instances", function() { - expect(g).toEqual(jasmine.any(ol.geom.Geometry)); + expect( g ).toBeA( ol.geom.Geometry ); }); it("can set bounds", function() { @@ -40,10 +40,9 @@ describe("ol.geom.geometry", function() { g.bounds(b); var gotBounds = g.bounds(); - expect(gotBounds.getMinX()).toEqual(0); - expect(gotBounds.getMinY()).toEqual(1); - expect(gotBounds.getMaxX()).toEqual(2); - expect(gotBounds.getMaxY()).toEqual(3); + expect(gotBounds.minX()).toEqual(0); + expect(gotBounds.minY()).toEqual(1); + expect(gotBounds.maxX()).toEqual(2); + expect(gotBounds.maxY()).toEqual(3); }); -// });