Skip to content

Commit

Permalink
Tests: Moved issue test #4284 to unit-tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
sigrunnu authored and TorsteinHonsi committed Jun 21, 2019
1 parent 792e972 commit 990e918
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 33 deletions.
33 changes: 0 additions & 33 deletions samples/issues/highcharts-4.1.6/4284-column-update/demo.js

This file was deleted.

30 changes: 30 additions & 0 deletions samples/unit-tests/series-column/update/demo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
QUnit.test('Column update(#4284)', function (assert) {
var chart = $('#container').highcharts({
chart: {
animation: false
},

xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},

series: [{
type: 'column',
animation: false,
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
}]

}).highcharts();

var point = chart.series[0].points[0];
point.update({ y: 100 });


assert.notEqual(
point.graphic.element.getAttribute('visibility'),
'hidden',
'Point is visible'
);

});

0 comments on commit 990e918

Please sign in to comment.