diff --git a/test/fixtures/core.datasetController/stacked-initial-render.js b/test/fixtures/core.datasetController/stacked-initial-render.js new file mode 100644 index 00000000000..96c7fb977be --- /dev/null +++ b/test/fixtures/core.datasetController/stacked-initial-render.js @@ -0,0 +1,49 @@ +module.exports = { + config: { + type: 'line', + data: { + labels: [0, 1, 2, 3, 4, 5, 6], + datasets: [ + { + // option in dataset + data: [9, 13, 15, 25, 22, 15, 21], + stack: 'construction_stack', + borderWidth: 10, + borderColor: 'rgb(54, 162, 235)' + }, + { + data: [9, 13, 15, 25, 22, 15, 21], + stack: 'construction_stack', + borderWidth: 10, + borderColor: 'rgb(255, 99, 132)' + } + ] + }, + options: { + scales: { + x: { + ticks: { + display: false + } + }, + y: { + ticks: { + display: false + } + } + }, + plugins: { + legend: false, + title: false, + tooltip: false, + filler: false + } + } + }, + options: { + canvas: { + height: 512, + width: 512 + } + } +}; diff --git a/test/fixtures/core.datasetController/stacked-initial-render.png b/test/fixtures/core.datasetController/stacked-initial-render.png new file mode 100644 index 00000000000..8f55664df1e Binary files /dev/null and b/test/fixtures/core.datasetController/stacked-initial-render.png differ diff --git a/test/specs/core.datasetController.tests.js b/test/specs/core.datasetController.tests.js index e10c33d118c..18011efcb95 100644 --- a/test/specs/core.datasetController.tests.js +++ b/test/specs/core.datasetController.tests.js @@ -1,4 +1,6 @@ describe('Chart.DatasetController', function() { + describe('auto', jasmine.fixture.specs('core.datasetController')); + it('should listen for dataset data insertions or removals', function() { var data = [0, 1, 2, 3, 4, 5]; var chart = acquireChart({