Add unit test for tooltips on SVG elements

Fix #14076.
For the record, I was originally using an equality-after-`Math.round()` check here, but IE9 is off by 1px vs. everything else (because IE quirkiness), so I had to use this approach instead.