Skip to content

Commit

Permalink
Add failing test for endless loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
liias committed Aug 3, 2017
1 parent b889902 commit e29d589
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
@@ -0,0 +1,19 @@
package org.xhtmlrenderer.pdf.bug;

import org.junit.Test;
import org.xhtmlrenderer.pdf.ITextRenderer;

import java.io.File;
import java.net.URL;

public class EndlessLoopTest {

@Test(timeout = 3000L)
public void testWordwrap() throws Exception {
URL htmlUrl = getClass().getResource("EndlessLoopTest_wordwrap.html");
File htmlFile = new File(htmlUrl.toURI());
ITextRenderer renderer = new ITextRenderer();
renderer.setDocument(htmlFile);
renderer.layout();
}
}
@@ -0,0 +1,6 @@
<body>
<div style="width: 100px; word-wrap: break-word">
<div style="width: 100px; float: left;">div with similar width than container and is floated</div>
b
</div>
</body>

0 comments on commit e29d589

Please sign in to comment.