summaryrefslogtreecommitdiff
path: root/test/text.script
diff options
context:
space:
mode:
Diffstat (limited to 'test/text.script')
-rw-r--r--test/text.script8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/text.script b/test/text.script
index 776cc41..2ed0b29 100644
--- a/test/text.script
+++ b/test/text.script
@@ -19,3 +19,11 @@ expect-pixel .zig-cache/text/native.png 127 256 16 16 16 255
# ligatures: twelve characters at scale 2 are 192 px, on its own taller line.
expect-pixel .zig-cache/text/native.png 200 275 32 64 96 255
expect-pixel .zig-cache/text/native.png 206 290 16 16 16 255
+# A paragraph (sk.text) wrapped at 200 and centred: three lines, the last
+# with "twice" at twice the size, 16 + 16 + 31 px tall from y 175; the caret
+# its Layout gives before "twice" is that line's height, at x 440.
+expect-pixel .zig-cache/text/native.png 425 237 32 64 96 255
+expect-pixel .zig-cache/text/native.png 425 238 16 16 16 255
+expect-pixel .zig-cache/text/native.png 440 207 255 255 0 255
+expect-pixel .zig-cache/text/native.png 440 237 255 255 0 255
+expect-pixel .zig-cache/text/native.png 440 206 32 64 96 255