From b207656d4d447bbf0a97ac2e7924c40d61ad04b5 Mon Sep 17 00:00:00 2001 From: danzel Date: Fri, 14 Jun 2013 14:18:42 +1200 Subject: [PATCH] AddLayerSpec -> AddLayer.SingleSpec (As it contains tests about adding a single marker). Not sure if this is the right way to organise these tests. --- .../{AddLayerSpec.js => AddLayer.SingleSpec.js} | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) rename spec/suites/{AddLayerSpec.js => AddLayer.SingleSpec.js} (71%) diff --git a/spec/suites/AddLayerSpec.js b/spec/suites/AddLayer.SingleSpec.js similarity index 71% rename from spec/suites/AddLayerSpec.js rename to spec/suites/AddLayer.SingleSpec.js index af82617509..1b78f6d4b2 100644 --- a/spec/suites/AddLayerSpec.js +++ b/spec/suites/AddLayer.SingleSpec.js @@ -1,4 +1,4 @@ -describe('addLayer', function () { +describe('addLayer adding a single marker', function () { var map, div; beforeEach(function () { div = document.createElement('div'); @@ -16,7 +16,9 @@ afterEach(function () { document.body.removeChild(div); }); - it('adds an individual marker that is added before the group is added to the map', function () { + + + it('appears when added to the group before the group is added to the map', function () { var group = new L.MarkerClusterGroup(); var marker = new L.Marker([1.5, 1.5]); @@ -27,7 +29,7 @@ expect(marker._icon).to.not.be(undefined); expect(marker._icon.parentNode).to.be(map._panes.markerPane); }); - it('adds an individual marker that is added after the group is added to the map', function () { + it('appears when added to the group after the group is added to the map', function () { var group = new L.MarkerClusterGroup(); var marker = new L.Marker([1.5, 1.5]); @@ -38,7 +40,7 @@ expect(marker._icon).to.not.be(undefined); expect(marker._icon.parentNode).to.be(map._panes.markerPane); }); - it('adds (using animations) an individual marker that is added after the group is added to the map', function () { + it('appears (using animations) when added after the group is added to the map', function () { var group = new L.MarkerClusterGroup({ animateAddingMarkers: true }); var marker = new L.Marker([1.5, 1.5]); @@ -51,7 +53,7 @@ }); - it('does not add an individual marker that is too far away that is added before the group is added to the map', function () { + it('does not appear when too far away when added before the group is added to the map', function () { var group = new L.MarkerClusterGroup(); var marker = new L.Marker([3.5, 1.5]); @@ -61,7 +63,7 @@ expect(marker._icon).to.be(undefined); }); - it('does not add an individual marker that is too far away that is added after the group is added to the map', function () { + it('does not appear when too far away when added after the group is added to the map', function () { var group = new L.MarkerClusterGroup(); var marker = new L.Marker([3.5, 1.5]);