summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2021-09-19 13:05:04 +0000
committerPJ Fanning <fanningpj@apache.org>2021-09-19 13:05:04 +0000
commitac83ff11f47a9d67235ab1339ba3c30b7489df79 (patch)
tree9e7e2af58432e3d4650481035b565b869b3a5ab6
parent53d76b369e6618b65a0cb59db1b64c992532d268 (diff)
downloadpoi-ac83ff11f47a9d67235ab1339ba3c30b7489df79.tar.gz
poi-ac83ff11f47a9d67235ab1339ba3c30b7489df79.zip
add test for broken file (5.0.1-RC1 issues)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893444 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--poi-scratchpad/src/test/java/org/apache/poi/hslf/usermodel/TestBugs.java8
-rw-r--r--test-data/slideshow/23884_defense_FINAL_OOimport_edit.pptbin0 -> 2579456 bytes
2 files changed, 8 insertions, 0 deletions
diff --git a/poi-scratchpad/src/test/java/org/apache/poi/hslf/usermodel/TestBugs.java b/poi-scratchpad/src/test/java/org/apache/poi/hslf/usermodel/TestBugs.java
index 6e8c8b5e92..a2b0df9bf7 100644
--- a/poi-scratchpad/src/test/java/org/apache/poi/hslf/usermodel/TestBugs.java
+++ b/poi-scratchpad/src/test/java/org/apache/poi/hslf/usermodel/TestBugs.java
@@ -877,4 +877,12 @@ public final class TestBugs {
assertEquals(ShapeType.NOT_PRIMITIVE, shList.get(2).getShapeType());
}
}
+
+ @Test
+ void test501RC1Failure() throws Exception {
+ try (HSLFSlideShow ppt = open("23884_defense_FINAL_OOimport_edit.ppt")) {
+ List<HSLFShape> shList = ppt.getSlides().get(0).getShapes();
+ assertEquals(ShapeType.NOT_PRIMITIVE, shList.get(2).getShapeType());
+ }
+ }
}
diff --git a/test-data/slideshow/23884_defense_FINAL_OOimport_edit.ppt b/test-data/slideshow/23884_defense_FINAL_OOimport_edit.ppt
new file mode 100644
index 0000000000..782ad93386
--- /dev/null
+++ b/test-data/slideshow/23884_defense_FINAL_OOimport_edit.ppt
Binary files differ