Chart.js/test/fixtures/element.line
Simon Brunel 1ca0ffb5d5 Introduce unit test based on image comparison (#3988)
Attempt to make easier the creation of unit tests that check the drawing output. Until now, this was done by checking calls on a 'fake' context, which is hard to maintain (need to update pixel values by hands) and also not reliable when optimizing code (i.e. different calls sequence but same result).

As of now, it's possible to define 'auto' tests based on JSON/PNG fixtures: chart is generated from the JSON file and compared to the associated PNG image. The image diff is done using `pixelmatch`. As an example (and in preparation of the `filler` plugin), add auto tests for the line element `fill` options.
2017-03-05 09:49:12 -07:00
..
fill-line-bottom-span.json Introduce unit test based on image comparison (#3988) 2017-03-05 09:49:12 -07:00
fill-line-bottom-span.png Introduce unit test based on image comparison (#3988) 2017-03-05 09:49:12 -07:00
fill-line-bottom.json Introduce unit test based on image comparison (#3988) 2017-03-05 09:49:12 -07:00
fill-line-bottom.png Introduce unit test based on image comparison (#3988) 2017-03-05 09:49:12 -07:00
fill-line-spline-span.json Introduce unit test based on image comparison (#3988) 2017-03-05 09:49:12 -07:00
fill-line-spline-span.png Introduce unit test based on image comparison (#3988) 2017-03-05 09:49:12 -07:00
fill-line-spline.json Introduce unit test based on image comparison (#3988) 2017-03-05 09:49:12 -07:00
fill-line-spline.png Introduce unit test based on image comparison (#3988) 2017-03-05 09:49:12 -07:00
fill-line-stepped-span.json Introduce unit test based on image comparison (#3988) 2017-03-05 09:49:12 -07:00
fill-line-stepped-span.png Introduce unit test based on image comparison (#3988) 2017-03-05 09:49:12 -07:00
fill-line-stepped.json Introduce unit test based on image comparison (#3988) 2017-03-05 09:49:12 -07:00
fill-line-stepped.png Introduce unit test based on image comparison (#3988) 2017-03-05 09:49:12 -07:00
fill-line-top-span.json Introduce unit test based on image comparison (#3988) 2017-03-05 09:49:12 -07:00
fill-line-top-span.png Introduce unit test based on image comparison (#3988) 2017-03-05 09:49:12 -07:00
fill-line-top.json Introduce unit test based on image comparison (#3988) 2017-03-05 09:49:12 -07:00
fill-line-top.png Introduce unit test based on image comparison (#3988) 2017-03-05 09:49:12 -07:00
fill-line-zero-span.json Introduce unit test based on image comparison (#3988) 2017-03-05 09:49:12 -07:00
fill-line-zero-span.png Introduce unit test based on image comparison (#3988) 2017-03-05 09:49:12 -07:00
fill-line-zero.json Introduce unit test based on image comparison (#3988) 2017-03-05 09:49:12 -07:00
fill-line-zero.png Introduce unit test based on image comparison (#3988) 2017-03-05 09:49:12 -07:00
fill-radar-spline.json Introduce unit test based on image comparison (#3988) 2017-03-05 09:49:12 -07:00
fill-radar-spline.png Introduce unit test based on image comparison (#3988) 2017-03-05 09:49:12 -07:00
fill-radar-zero.json Introduce unit test based on image comparison (#3988) 2017-03-05 09:49:12 -07:00
fill-radar-zero.png Introduce unit test based on image comparison (#3988) 2017-03-05 09:49:12 -07:00