Skip to content

Commit

Permalink
Addition to highcharts#10450, fixed tests to run and pass for FF, IE1…
Browse files Browse the repository at this point in the history
…1 and Edge.
  • Loading branch information
KacperMadej authored and TorsteinHonsi committed May 9, 2019
1 parent 046def2 commit c434ef1
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions samples/unit-tests/series/init-animation/demo.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint func-style:0 */

QUnit.skip('Initial animation - series.clip set to false', function (assert) {
QUnit.test('Initial animation - series.clip set to false', function (assert) {

var clock = null;

Expand All @@ -12,7 +12,7 @@ QUnit.skip('Initial animation - series.clip set to false', function (assert) {
tooltip: {
formatter: function () {
ttCounter++;
return 'Tooltip';
return 'Tooltip ' + ttCounter;
}
},
series: [{
Expand All @@ -32,17 +32,14 @@ QUnit.skip('Initial animation - series.clip set to false', function (assert) {
// animation started

controller.mouseMove(150, 5);
width = chart[chart.series[0].sharedClipKey].getBBox().width;
width = chart[chart.series[0].sharedClipKey].element.width.baseVal
.value;

assert.strictEqual(
width > 20 && width < 200,
true,
'Animating - plot clipped'
);
assert.strictEqual(
ttCounter,
0,
'Animating - no tooltip, clipped durring animation'
);

setTimeout(function () {
// animation uncovers most of the plot
Expand Down

0 comments on commit c434ef1

Please sign in to comment.