summaryrefslogtreecommitdiff
path: root/test/text.script
diff options
context:
space:
mode:
Diffstat (limited to 'test/text.script')
-rw-r--r--test/text.script7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/text.script b/test/text.script
new file mode 100644
index 0000000..5bea6f5
--- /dev/null
+++ b/test/text.script
@@ -0,0 +1,7 @@
+# `textSize` is what `text` draws: at scale 1 ten digits of the built-in
+# font advance about 80 px on a 16 px line, and the box under them is that.
+screenshot .zig-cache/text/native.png
+expect-pixel .zig-cache/text/native.png 84 11 32 64 96 255
+expect-pixel .zig-cache/text/native.png 84 24 32 64 96 255
+expect-pixel .zig-cache/text/native.png 97 11 16 16 16 255
+expect-pixel .zig-cache/text/native.png 84 27 16 16 16 255