Skip to content

Commit

Permalink
#305 Tests that white-space: pre-wrap works correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
danfickle committed Dec 11, 2018
1 parent a702e37 commit c9c367c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
Binary file not shown.
@@ -0,0 +1,20 @@
<html>
<head>
<style>
@page {
size: 200px 300px;
margin: 10px;
}
body {
margin: 0;
max-width: 180px;
}
</style>
</head>
<body style="font-family: 'TestFont'; color: black; font-size: 20px; white-space: pre-wrap;">
Spaces
Tab
Some text is going onto more than one line and wrapping as needed.
Line<br/> break.
</body>
</html>
Expand Up @@ -253,4 +253,12 @@ public void testLineWrapBreakWord() throws IOException {
public void testLineWrapBreakAll() throws IOException {
assertTrue(run("line-wrap-break-all"));
}

/**
* Tests that white-space: pre-wrap works as specified. Issue 305.
*/
@Test
public void testLineWrapPreWrap() throws IOException {
assertTrue(run("line-wrap-pre-wrap"));
}
}

0 comments on commit c9c367c

Please sign in to comment.