]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Rewrite unit test waitForResize helper (#4566)
authorSimon Brunel <simonbrunel@users.noreply.github.com>
Wed, 26 Jul 2017 11:33:45 +0000 (13:33 +0200)
committerGitHub <noreply@github.com>
Wed, 26 Jul 2017 11:33:45 +0000 (13:33 +0200)
commitc6bda02468475fc9b2548e143b64b6a8fff4139c
tree5754bfdbe8ccdd5bb374b6051905846e0d61faf1
parent3aa7a20923d7b528755d5b80aee87cc22796b967
Rewrite unit test waitForResize helper (#4566)

The original implementation tries to intercept events from the chart internal iframe, which ones failing on Chrome 60. Checking internals doesn't seem the best approach, instead we could consider that a chart has been resized after the resize method has been called and processed. So let's hook `Chart.resize` and callback once it's done.
.travis.yml
test/.eslintrc
test/jasmine.index.js
test/jasmine.utils.js
test/specs/core.controller.tests.js
test/specs/platform.dom.tests.js