diff --git a/test/specs/core.controller.tests.js b/test/specs/core.controller.tests.js index aa4784fe0..30968a2bf 100644 --- a/test/specs/core.controller.tests.js +++ b/test/specs/core.controller.tests.js @@ -728,6 +728,8 @@ describe('Chart', function() { } }); + var wrapper = chart.canvas.parentNode; + waitForResize(chart, function() { var canvas = chart.canvas; expect(chart).toBeChartOfSize({ @@ -749,6 +751,8 @@ describe('Chart', function() { rw: 455, rh: 455, }); + chart.destroy(); + window.document.body.removeChild(wrapper); done(); }); canvas.parentNode.style.width = '455px'; diff --git a/test/specs/plugin.tooltip.tests.js b/test/specs/plugin.tooltip.tests.js index b890922e4..b352b1a98 100644 --- a/test/specs/plugin.tooltip.tests.js +++ b/test/specs/plugin.tooltip.tests.js @@ -148,7 +148,7 @@ describe('Core.Tooltip', function() { done(); }); - jasmine.triggerMouseEvent(chart, 'mousemove', {x: point.x, y: chart.chartArea.top}); + jasmine.triggerMouseEvent(chart, 'mousemove', {x: point.x, y: chart.chartArea.top + 10}); }); it('Should only display if intersecting if intersect is set', function(done) {