Skip to content

Commit

Permalink
Addition to #5396, fixed linting errors in activeDataLabelStyle unit …
Browse files Browse the repository at this point in the history
…tests.
  • Loading branch information
TorsteinHonsi committed Aug 11, 2016
1 parent f244eec commit bf9efaf
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions samples/unit-tests/drilldown/activedatalabelstyle/demo.js
@@ -1,7 +1,7 @@
QUnit.test('activeDataLabelStyle', function (assert) {
function getDataLabelFill(point) {
var getDataLabelFill = function (point) {
return point.dataLabel.element.childNodes[0].style.fill;
}
};
var chart = Highcharts.chart('container', {
chart: {
type: 'column'
Expand All @@ -28,11 +28,8 @@ QUnit.test('activeDataLabelStyle', function (assert) {
}]
}
}),

series = chart.series[0],
point = series.points[0];


assert.ok(
getDataLabelFill(point) === 'rgb(13, 35, 58)' || getDataLabelFill(point) === '#0d233a',
'activeDataLabelStyle.color default to rgb(13, 35, 58)'
Expand Down Expand Up @@ -81,6 +78,7 @@ QUnit.test('activeDataLabelStyle', function (assert) {
color: '#FFFFFF'
});
assert.ok(
getDataLabelFill(point),
getDataLabelFill(point) === 'rgb(0, 0, 0)' || getDataLabelFill(point) === '#000000',
'activeDataLabelStyle.color contrast to white'
);
Expand Down

0 comments on commit bf9efaf

Please sign in to comment.