]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Auto-release charts if not persistent (tests)
authorSimon Brunel <simonbrunel@users.noreply.github.com>
Tue, 6 Sep 2016 09:10:44 +0000 (11:10 +0200)
committerSimon Brunel <simonbrunel@users.noreply.github.com>
Thu, 8 Sep 2016 21:32:43 +0000 (23:32 +0200)
commitefb82d93d86c521d3ce17eb625baaf4c75ca0a09
treef202b07d23b761746a36c111e55cb219a7938e2b
parent38f85c98b5821091c44df6bf07da937b3b1a464f
Auto-release charts if not persistent (tests)

For convenience, charts are now automatically released after each spec if they are not acquired using `persistent: true`. Also remove the confusing and error prone `chartInstance` global variable and make sure that chart instances are local to each spec.
14 files changed:
test/controller.bar.tests.js
test/controller.bubble.tests.js
test/controller.doughnut.tests.js
test/controller.line.tests.js
test/controller.polarArea.tests.js
test/controller.radar.tests.js
test/core.layoutService.tests.js
test/core.legend.tests.js
test/core.tooltip.tests.js
test/mockContext.js
test/scale.linear.tests.js
test/scale.logarithmic.tests.js
test/scale.radialLinear.tests.js
test/scale.time.tests.js