10 Commits

Author SHA1 Message Date
Nyall Dawson
854c0b8bab Allow use of masks for unit test control images
Masks set which pixels in the control image should be tested and
an optional tolerance for each pixel. This is done via the colors
in the mask image - white pixels are ignored, black must be an
exact match, and gray levels represent the maximum color component
deviation for that pixel.

This should replace the fragile anomaly images, in that a single
control image with a suitable mask will not be susceptible to
antialiasing differences, etc.

A new script (scripts/generate_test_mask_image.py) is included which
either creates a new mask or modifies an existing mask to handle
an acceptable rendered image.

Ultimately, masking along with multi render checks for specific
platform differences should be flexible enough to meet our needs.
2015-02-19 07:23:57 +11:00
Nyall Dawson
31c32505bb Switch to RGB32 images for composition checker 2014-11-14 18:30:29 +01:00
Nyall Dawson
2cfcca10d2 Use a non-transparent background for composition checker
Fix composerhtml tests on precise
2014-11-14 18:30:28 +01:00
Nyall Dawson
3af68f4888 Rebuild composer test images at 96 dpi to speed up unit tests 2014-09-21 19:47:39 +10:00
Nyall Dawson
0b32f2ac38 [tests] Fix composer tests. Rebuild images following MTR rendering changes. Switch tests to use standard test font. 2014-04-03 22:56:34 +11:00
Nyall Dawson
ffcbdabe4e [composer] Refresh control images following frame join stle change 2014-02-06 22:46:43 +11:00
Nyall Dawson
aae492fa43 [tests] Update composition based tests now that 1px bad row bug is fixed 2014-01-04 15:13:06 +11:00
Nyall Dawson
a596b2243a [tests] Update all expected images based on composer tests. Prior to c3ec3b2d75 composer exports had a 1 pixel slightly-gray row at the bottom of images. After c3ec3b2d75 this bottom row is now a slightly transparent white row. The underlying issue causing this row still needs to be fixed, but in the meantime this gets composer tests passing again. 2014-01-01 09:26:27 +11:00
Nyall Dawson
ed3e04d894 [tests] Add some more anomaly images 2013-12-29 13:13:00 +11:00
nyalldawson
089fbe95b6 [tests] Update atlas tests, add exceptions 2013-12-29 09:52:15 +11:00