Browse Source

Add test that shows that bug #45877 has already been fixed

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@998634 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_3_7_BETA3
Nick Burch 13 years ago
parent
commit
76a609d147

+ 11
- 0
src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java View File

@@ -254,6 +254,17 @@ public final class TestProblems extends HWPFTestCase {
assertEquals("\n", ext.getHeaderText());
assertEquals("", ext.getFooterText());
}
/**
* Bug #45877 - problematic PAPX with no parent set
*/
public void testParagraphPAPXNoParent45877() throws Exception {
HWPFDocument doc = HWPFTestDataSamples.openSampleFile("Bug45877.doc");
assertEquals(17, doc.getRange().numParagraphs());
assertEquals("First paragraph\r", doc.getRange().getParagraph(0).text());
assertEquals("After Crashing Part\r", doc.getRange().getParagraph(13).text());
}

/**
* Bug #48245 - don't include the text from the

BIN
test-data/document/Bug45877.doc View File


Loading…
Cancel
Save