diff --git a/js/tests/unit/tooltip.js b/js/tests/unit/tooltip.js index fb1940b2d9..7896c2c969 100644 --- a/js/tests/unit/tooltip.js +++ b/js/tests/unit/tooltip.js @@ -739,4 +739,40 @@ $(function () { $tooltip.trigger('mouseenter') }) + test('should correctly position tooltips on SVG elements', function () { + if (!window.SVGElement) { + // Skip IE8 since it doesn't support SVG + expect(0) + return + } + + stop() + + var styles = '' + var $styles = $(styles).appendTo('head') + + $('#qunit-fixture').append( + '