Chart.js/test
Simon Brunel efced4780c Fix context state restoration on destroy
In many cases, the canvas render size is changed by the lib, causing the state stack to be discarded, meaning that we can't use save() and restore() to release the context with its initial state (i.e. before creating the chart). Since we don't need (want) to manually save / restore the context initial state, simply make sure to reset it to the default state to give a fresh context back to the user. That also means we don't need to revert the scale when the pixel device ratio is not 1.
2016-11-07 19:16:45 -05:00
..
controller.bar.tests.js Extend eslint to test files (#3473) 2016-10-16 17:34:59 -04:00
controller.bubble.tests.js Extend eslint to test files (#3473) 2016-10-16 17:34:59 -04:00
controller.doughnut.tests.js Extend eslint to test files (#3473) 2016-10-16 17:34:59 -04:00
controller.line.tests.js Extend eslint to test files (#3473) 2016-10-16 17:34:59 -04:00
controller.polarArea.tests.js Extend eslint to test files (#3473) 2016-10-16 17:34:59 -04:00
controller.radar.tests.js Extend eslint to test files (#3473) 2016-10-16 17:34:59 -04:00
core.controller.tests.js Fix context state restoration on destroy 2016-11-07 19:16:45 -05:00
core.datasetController.tests.js Better animation when adding or removing data 2016-10-03 16:01:38 -04:00
core.element.tests.js Extend eslint to test files (#3473) 2016-10-16 17:34:59 -04:00
core.helpers.tests.js Spelling fixes (#3522) 2016-10-27 21:18:31 +02:00
core.interaction.tests.js X and Y interaction modes now use the intersect option 2016-11-05 08:19:07 -04:00
core.layoutService.tests.js Fix eslint errors in layout service test 2016-10-18 22:00:55 +00:00
core.legend.tests.js Extend eslint to test files (#3473) 2016-10-16 17:34:59 -04:00
core.plugin.tests.js Extend eslint to test files (#3473) 2016-10-16 17:34:59 -04:00
core.scaleService.tests.js Extend eslint to test files (#3473) 2016-10-16 17:34:59 -04:00
core.title.tests.js Extend eslint to test files (#3473) 2016-10-16 17:34:59 -04:00
core.tooltip.tests.js Spelling fixes (#3522) 2016-10-27 21:18:31 +02:00
defaultConfig.tests.js Extend eslint to test files (#3473) 2016-10-16 17:34:59 -04:00
element.arc.tests.js Extend eslint to test files (#3473) 2016-10-16 17:34:59 -04:00
element.line.tests.js Extend eslint to test files (#3473) 2016-10-16 17:34:59 -04:00
element.point.tests.js Extend eslint to test files (#3473) 2016-10-16 17:34:59 -04:00
element.rectangle.tests.js Extend eslint to test files (#3473) 2016-10-16 17:34:59 -04:00
mockContext.js Extend eslint to test files (#3473) 2016-10-16 17:34:59 -04:00
scale.category.tests.js Extend eslint to test files (#3473) 2016-10-16 17:34:59 -04:00
scale.linear.tests.js Extend eslint to test files (#3473) 2016-10-16 17:34:59 -04:00
scale.logarithmic.tests.js Extend eslint to test files (#3473) 2016-10-16 17:34:59 -04:00
scale.radialLinear.tests.js Spelling fixes (#3522) 2016-10-27 21:18:31 +02:00
scale.time.tests.js Extend eslint to test files (#3473) 2016-10-16 17:34:59 -04:00