summaryrefslogtreecommitdiff
path: root/test/export.script
diff options
context:
space:
mode:
Diffstat (limited to 'test/export.script')
-rw-r--r--test/export.script11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/export.script b/test/export.script
new file mode 100644
index 0000000..bd238e7
--- /dev/null
+++ b/test/export.script
@@ -0,0 +1,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