blob: bd238e73b8f5e46d8e28b5d2f7540581fc7c49a1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
# Two exports of the same sketch ({a}, {b}: directories of PNGs, 30 fps,
# 320x180, five frames) are the same pictures, and frame k is k/30 s in.
expect-same-screenshot {a}/000000.png {b}/000000.png
expect-same-screenshot {a}/000004.png {b}/000004.png
expect-different-screenshot {a}/000000.png {a}/000004.png
# Frame 0 is before any time passed; frame 4 has the bar 40 px wide.
expect-pixel {a}/000000.png 0 0 32 32 32 255
expect-pixel {a}/000004.png 39 0 255 128 64 255
expect-pixel {a}/000004.png 41 0 32 32 32 255
# The canvas is the size asked for.
expect-pixel {a}/000004.png 319 179 32 32 32 255
|