From 597405c28819c8f0513fabd70430ed00832335eb Mon Sep 17 00:00:00 2001 From: ahocevar Date: Wed, 22 May 2013 13:41:29 -0500 Subject: [PATCH] Fixing bug in tests That's what you get from copying and pasting and forgetting to modify the pasted lines to suit your needs. --- test/spec/ol/structs/rtree.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/spec/ol/structs/rtree.test.js b/test/spec/ol/structs/rtree.test.js index e5ee9baef6..c0eac3bbff 100644 --- a/test/spec/ol/structs/rtree.test.js +++ b/test/spec/ol/structs/rtree.test.js @@ -56,9 +56,9 @@ describe('ol.structs.RTree', function() { var len = 0; while (i > 0) { var bounds = new Array(4); - bounds[0] = -Math.random() * 10000 + 501; + bounds[0] = Math.random() * 10000; bounds[1] = bounds[0] + Math.random() * 500; - bounds[2] = -Math.random() * 10000 + 501; + bounds[2] = Math.random() * 10000; bounds[3] = bounds[2] + Math.random() * 500; len += goog.object.getCount(rTree.find(bounds)); i--;