diff --git a/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java b/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java index 527b92e1c..bb150f7fd 100644 --- a/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java +++ b/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java @@ -35,8 +35,6 @@ import java.util.List; import java.util.Map; import java.util.Set; -import junit.framework.AssertionFailedError; - import org.apache.poi.POIDataSamples; import org.apache.poi.ddf.AbstractEscherOptRecord; import org.apache.poi.ddf.EscherArrayProperty; @@ -51,11 +49,15 @@ import org.apache.poi.hslf.record.SlideListWithText; import org.apache.poi.hslf.record.SlideListWithText.SlideAtomsSet; import org.apache.poi.hslf.record.TextHeaderAtom; import org.apache.poi.sl.usermodel.PictureData.PictureType; +import org.apache.poi.sl.usermodel.SlideShow; +import org.apache.poi.sl.usermodel.SlideShowFactory; import org.apache.poi.util.LittleEndian; import org.apache.poi.util.StringUtil; import org.apache.poi.util.Units; import org.junit.Test; +import junit.framework.AssertionFailedError; + /** * Testcases for bugs entered in bugzilla * the Test name contains the bugzilla bug id @@ -637,4 +639,9 @@ public final class TestBugs { inputStream.close(); } } + + @Test + public void bug58516() throws IOException { + SlideShowFactory.create(_slTests.getFile("bug58516.ppt")); + } } diff --git a/test-data/slideshow/bug58516.ppt b/test-data/slideshow/bug58516.ppt new file mode 100644 index 000000000..b1cb7cd19 Binary files /dev/null and b/test-data/slideshow/bug58516.ppt differ