diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-08-05 11:41:57 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-08-05 11:41:57 -0700 |
commit | d616c6169a2104f21c8577c88ec1c4e5a00e5cf9 (patch) | |
tree | 03d772679a5821c9fcd9e0ccd4309bf9c13f299e /tests/runner.py | |
parent | 969d433362d5e8427e3ef4a4293c65b2a6a94f12 (diff) |
strip color correction from pngs, so that the browser reftests are consistent across machines
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index 84e8b69e..f34ef4a7 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -12395,6 +12395,8 @@ elif 'browser' in str(sys.argv): ''' + code def reftest(self, expected): + # make sure the pngs used here have no color correction, using e.g. + # pngcrush -rem gAMA -rem cHRM -rem iCCP -rem sRGB infile outfile basename = os.path.basename(expected) shutil.copyfile(expected, os.path.join(self.get_dir(), basename)) open(os.path.join(self.get_dir(), 'reftest.js'), 'w').write(''' |