Skip to content

Commit e354a6a

Browse files
committed
tests(textframe): Add .frame snapshot baselines
why: New snapshot format from SingleFileSnapshotExtension. what: - Add test_frame_rendering[basic_success].frame - Add test_frame_rendering[overflow_width].frame - Add test_frame_rendering[empty_frame].frame - Add test_frame_rendering[truncate_width].frame - Add test_frame_rendering[truncate_height].frame - Add test_frame_rendering[truncate_both].frame - Add test_nested_serialization.frame
1 parent 9e59472 commit e354a6a

7 files changed

+30
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
+----------+
2+
|hello |
3+
|world |
4+
+----------+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
+-----+
2+
| |
3+
| |
4+
+-----+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
+---------------------+
2+
|this line is too long|
3+
|row 2 |
4+
|row 3 |
5+
+---------------------+
6+
+---------------------+
7+
| ...........|
8+
| ...........|
9+
|.....................|
10+
+---------------------+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
+-----+
2+
|hello|
3+
|foo b|
4+
+-----+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
+----------+
2+
|row 1 |
3+
+----------+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
+-----+
2+
|hello|
3+
|foo |
4+
+-----+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[TextFrame(content_width=5, content_height=1, overflow_behavior='error', fill_char=' ', content=['one']), TextFrame(content_width=5, content_height=1, overflow_behavior='error', fill_char=' ', content=['two'])]

0 commit comments

Comments
 (0)