From 4d03c0bfaa29a9851a746e380fe5bdaffdf3d1c9 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Thu, 12 Dec 2013 17:03:40 +0100 Subject: [PATCH] Show an issue with ol.structs.RBush Note that the same test passes in the original implementation. --- test/spec/ol/structs/rbush.test.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/spec/ol/structs/rbush.test.js b/test/spec/ol/structs/rbush.test.js index 250aa374b5..757a6b287f 100644 --- a/test/spec/ol/structs/rbush.test.js +++ b/test/spec/ol/structs/rbush.test.js @@ -32,13 +32,18 @@ describe('ol.structs.RBush', function() { var objs; beforeEach(function() { - objs = [{}, {}, {}, {}, {}, {}]; + objs = [{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}]; rBush.insert([0, 0, 1, 1], objs[0]); rBush.insert([1, 1, 4, 4], objs[1]); rBush.insert([2, 2, 3, 3], objs[2]); rBush.insert([-5, -5, -4, -4], objs[3]); rBush.insert([-4, -4, -1, -1], objs[4]); rBush.insert([-3, -3, -2, -2], objs[5]); + rBush.insert([-3, -3, -2, -2], objs[6]); + rBush.insert([-3, -3, -2, -2], objs[7]); + rBush.insert([-3, -3, -2, -2], objs[8]); + rBush.insert([-3, -3, -2, -2], objs[9]); + rBush.insert([-3, -3, -2, -2], objs[10]); }); describe('#getAllInExtent', function() {