From f5a57c1689cf50aa5d47a6061c1d2f66fa72e0b8 Mon Sep 17 00:00:00 2001 From: Ben Li-Sauerwine Date: Thu, 22 Dec 2022 15:35:47 -0500 Subject: [PATCH] Remove test "don't opens the tooltip marker moseover while dragging map," which was added multiple times. --- spec/suites/layer/TooltipSpec.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/spec/suites/layer/TooltipSpec.js b/spec/suites/layer/TooltipSpec.js index 06119724ae5..96b27c0bf4b 100644 --- a/spec/suites/layer/TooltipSpec.js +++ b/spec/suites/layer/TooltipSpec.js @@ -501,25 +501,6 @@ describe('Tooltip', () => { expect(tooltip.isOpen()).to.be.ok(); }); - it('don\'t opens the tooltip on marker mouseover while dragging map', () => { - // Sometimes the mouse is moving faster then the map while dragging and then the marker can be hover and - // the tooltip opened / closed. - const layer = L.marker(center).addTo(map).bindTooltip('Tooltip'); - const tooltip = layer.getTooltip(); - - // simulate map dragging - map.dragging.moving = () => true; - - happen.at('mouseover', 210, 195); - expect(tooltip.isOpen()).to.be(false); - - // simulate map not dragging anymore - map.dragging.moving = () => false; - - happen.at('mouseover', 210, 195); - expect(tooltip.isOpen()).to.be.ok(); - }); - it('opens tooltip with passed latlng position while initializing', () => { const tooltip = new L.Tooltip(center) .addTo(map);