-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved issue test #4794 to unit-tests
- Loading branch information
Showing
4 changed files
with
26 additions
and
28 deletions.
There are no files selected for viewing
28 changes: 0 additions & 28 deletions
28
samples/issues/highcharts-4.1.9/4749-data-decimalpoint-negative/demo.js
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
26 changes: 26 additions & 0 deletions
26
samples/unit-tests/series-column/data-decimalpoint-negative/demo.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
QUnit.test("Data module with decimapPoint and negative numbers (#4749)", function (assert) { | ||
var chart = $("#container").highcharts({ | ||
data: { | ||
table: 'datatable', | ||
decimalPoint: ',' | ||
}, | ||
chart: { | ||
type: 'column' | ||
} | ||
}).highcharts(); | ||
|
||
assert.equal( | ||
chart.series[0].points.map(function (point) { | ||
return point.y; | ||
}).join(','), | ||
'-3.4,-1.2,5.1,-1.1,-3.12', | ||
'Series 1 correct data' | ||
); | ||
assert.equal( | ||
chart.series[1].points.map(function (point) { | ||
return point.y; | ||
}).join(','), | ||
'-4.24,-1.5,11.1,-1.1,-2.9', | ||
'Series 2 correct data' | ||
); | ||
}); |