From b84b83bf938d73914b9984af6e6342c27a65ac32 Mon Sep 17 00:00:00 2001 From: Vladimir Agafonkin Date: Tue, 19 Feb 2013 19:25:49 +0200 Subject: [PATCH] fix setView test, #1420 --- spec/suites/map/MapSpec.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/spec/suites/map/MapSpec.js b/spec/suites/map/MapSpec.js index c42a7aa0..20a2920e 100644 --- a/spec/suites/map/MapSpec.js +++ b/spec/suites/map/MapSpec.js @@ -36,14 +36,11 @@ describe("Map", function () { }); describe("#setView", function () { - it("sets the view of the map", function (done) { + it("sets the view of the map", function () { expect(map.setView([51.505, -0.09], 13)).toBe(map); expect(map.getZoom()).toBe(13); - window.setTimeout(function() { - expect(map.getCenter().distanceTo([51.505, -0.09])).toBeLessThan(1); - done(); - }, 500); + expect(map.getCenter().distanceTo([51.505, -0.09])).toBeLessThan(5); }); });