Skip to content

Commit a1cd96b

Browse files
committed
tests(textframe): Add snapshot baselines for truncate tests
why: Capture expected output for truncate behavior test cases. what: - Add truncate_width snapshot (5x2 frame, clipped "hello") - Add truncate_height snapshot (10x1 frame, single row) - Add truncate_both snapshot (5x2 frame, both dimensions clipped)
1 parent d3e6cdf commit a1cd96b

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

tests/textframe/__snapshots__/test_core.ambr

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,29 @@
2929
+---------------------+
3030
'''
3131
# ---
32+
# name: test_frame_rendering[truncate_both]
33+
'''
34+
+-----+
35+
|hello|
36+
|foo b|
37+
+-----+
38+
'''
39+
# ---
40+
# name: test_frame_rendering[truncate_height]
41+
'''
42+
+----------+
43+
|row 1 |
44+
+----------+
45+
'''
46+
# ---
47+
# name: test_frame_rendering[truncate_width]
48+
'''
49+
+-----+
50+
|hello|
51+
|foo |
52+
+-----+
53+
'''
54+
# ---
3255
# name: test_nested_serialization
3356
list([
3457
'''

0 commit comments

Comments
 (0)