From bf717f4abdd79d59915e821669d7b398b5dcc043 Mon Sep 17 00:00:00 2001 From: danfickle Date: Tue, 21 Apr 2020 17:49:39 +1000 Subject: [PATCH] #466 Minimal test showing infinite loop involving fixed table, colspan and break-word. [ci skip] --- .../html/issue-466-infinite-loop-table-cell-box.html | 6 ++++++ .../visualregressiontests/VisualRegressionTest.java | 10 ++++++++++ 2 files changed, 16 insertions(+) create mode 100644 openhtmltopdf-examples/src/main/resources/visualtest/html/issue-466-infinite-loop-table-cell-box.html diff --git a/openhtmltopdf-examples/src/main/resources/visualtest/html/issue-466-infinite-loop-table-cell-box.html b/openhtmltopdf-examples/src/main/resources/visualtest/html/issue-466-infinite-loop-table-cell-box.html new file mode 100644 index 000000000..5ff10cdfd --- /dev/null +++ b/openhtmltopdf-examples/src/main/resources/visualtest/html/issue-466-infinite-loop-table-cell-box.html @@ -0,0 +1,6 @@ + + + + + +
ABC
diff --git a/openhtmltopdf-examples/src/test/java/com/openhtmltopdf/visualregressiontests/VisualRegressionTest.java b/openhtmltopdf-examples/src/test/java/com/openhtmltopdf/visualregressiontests/VisualRegressionTest.java index 28b639706..6631e0e4c 100644 --- a/openhtmltopdf-examples/src/test/java/com/openhtmltopdf/visualregressiontests/VisualRegressionTest.java +++ b/openhtmltopdf-examples/src/test/java/com/openhtmltopdf/visualregressiontests/VisualRegressionTest.java @@ -1016,6 +1016,16 @@ public void testIssue459RemUnitDefault() throws IOException { assertTrue(vt.runTest("issue-459-rem-unit-default")); } + /** + * Tests a reported infinite loop bug with table cells in specific + * circumstances. + */ + @Test + @Ignore // Infinite loop w memory allocation. + public void testIssue466InfiniteLoopTableCellBox() throws IOException { + assertTrue(vt.runTest("issue-466-infinite-loop-table-cell-box")); + } + /** * Tests what the CSS content property is capable of. */