OLD | NEW |
(Empty) | |
| 1 set -ex |
| 2 |
| 3 # Diff PNGs based on pixel-for-pixel identity |
| 4 echo -e '[diff "img"]\n textconv = identify -quiet -format "%#"' >> .git/config |
| 5 echo -e '*.png diff=img' >> .git/info/attributes |
| 6 |
| 7 # Exclude tests that rely on font rendering |
| 8 excluded=( |
| 9 '2dcontext/drawing-text-to-the-canvas/2d.text.draw.fill.basic.png' |
| 10 '2dcontext/drawing-text-to-the-canvas/2d.text.draw.fill.maxWidth.large.png' |
| 11 '2dcontext/drawing-text-to-the-canvas/2d.text.draw.fill.rtl.png' |
| 12 '2dcontext/drawing-text-to-the-canvas/2d.text.draw.stroke.basic.png' |
| 13 ) |
| 14 |
| 15 ./update-built-tests.sh |
| 16 git update-index --assume-unchanged ${excluded[*]} |
| 17 git diff --exit-code |
OLD | NEW |