Commit 17e83b1
committed
tests(textframe): Add truncate behavior test cases
why: Verify the new overflow_behavior="truncate" mode works correctly
for width, height, and combined overflow scenarios.
what:
- Add overflow_behavior field to Case NamedTuple with default "error"
- Add truncate_width test case (clips horizontal overflow)
- Add truncate_height test case (clips vertical overflow)
- Add truncate_both test case (clips both dimensions)
- Update test to pass overflow_behavior to TextFrame constructor1 parent 25dd9bc commit 17e83b1
1 file changed
+30
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
49 | 74 | | |
50 | 75 | | |
51 | 76 | | |
| |||
60 | 85 | | |
61 | 86 | | |
62 | 87 | | |
63 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
64 | 93 | | |
65 | 94 | | |
66 | 95 | | |
| |||
0 commit comments