aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2011-09-14 14:39:20 +0000
committerNick Burch <nick@apache.org>2011-09-14 14:39:20 +0000
commitbd6b5d24947b58629a0f816fb464994a7ac829ea (patch)
tree0b591c25dfb8ef5abb69d6a950b2f6939653ec9a
parent00e43b57cebfcfe87732d61fd7569fbf5907550e (diff)
downloadpoi-bd6b5d24947b58629a0f816fb464994a7ac829ea.tar.gz
poi-bd6b5d24947b58629a0f816fb464994a7ac829ea.zip
Start on a testcase for TIKA-705 (more work needed though)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1170648 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/ooxml/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java1
-rw-r--r--src/ooxml/testcases/org/apache/poi/xslf/TestXSLFBugs.java8
-rw-r--r--test-data/slideshow/with_japanese.pptxbin0 -> 48011 bytes
3 files changed, 8 insertions, 1 deletions
diff --git a/src/ooxml/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java b/src/ooxml/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java
index 2491f68a78..b376d1f783 100644
--- a/src/ooxml/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java
+++ b/src/ooxml/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java
@@ -337,7 +337,6 @@ public class XMLSlideShow extends POIXMLDocument {
}
return imageNumber - 1;
}
-
public XSLFTableStyles getTableStyles(){
return _tableStyles;
}
diff --git a/src/ooxml/testcases/org/apache/poi/xslf/TestXSLFBugs.java b/src/ooxml/testcases/org/apache/poi/xslf/TestXSLFBugs.java
index 332164f8fa..ba49341a2e 100644
--- a/src/ooxml/testcases/org/apache/poi/xslf/TestXSLFBugs.java
+++ b/src/ooxml/testcases/org/apache/poi/xslf/TestXSLFBugs.java
@@ -55,4 +55,12 @@ public class TestXSLFBugs extends TestCase {
assertEquals("/ppt/slides/slide1.xml", slidePart.getRelationship("rId3").getTargetURI().toString());
assertEquals("/ppt/media/image1.png", slidePart.getRelationship("rId4").getTargetURI().toString());
}
+
+ /**
+ * Slide relations with anchors in them
+ */
+ public void testTIKA705() {
+ XMLSlideShow ss = XSLFTestDataSamples.openSampleDocument("with_japanese.pptx");
+ // TODO Check the details including the links
+ }
}
diff --git a/test-data/slideshow/with_japanese.pptx b/test-data/slideshow/with_japanese.pptx
new file mode 100644
index 0000000000..432a8061a3
--- /dev/null
+++ b/test-data/slideshow/with_japanese.pptx
Binary files differ