Преглед на файлове

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 години
родител
ревизия
76a609d147
променени са 2 файла, в които са добавени 11 реда и са изтрити 0 реда
  1. 11
    0
      src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java
  2. Двоични данни
      test-data/document/Bug45877.doc

+ 11
- 0
src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java Целия файл

@@ -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

Двоични данни
test-data/document/Bug45877.doc Целия файл


Loading…
Отказ
Запис