Skip to content

Commit

Permalink
add table that fails to render with TooNarrow error
Browse files Browse the repository at this point in the history
  • Loading branch information
sftse authored and jugglerchris committed Feb 10, 2024
1 parent d04a936 commit 83b7b1c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1950,6 +1950,22 @@ fn test_overflow_wide_char() {
c.min_wrap_width(1).allow_width_overflow()
});
}

#[test]
fn test_table_too_narrow() {
let tbl = "<table><tr>
<td><ol><li></li></ol></td>
<td>
<ol><li>Aliquam erat volutpat. Lorem ipsum dolor sit amet,</li></ol>
</td>
<td>
<ol><li>Lorem ipsum dolor sit</li></ol>
</td>
</tr></table>"
.as_bytes();
from_read(tbl, 80);
}

#[cfg(feature = "css")]
mod css_tests {
use super::{test_html_coloured, test_html_css, test_html_style};
Expand Down

0 comments on commit 83b7b1c

Please sign in to comment.