From: Nick Burch Date: Wed, 14 Sep 2011 14:39:20 +0000 (+0000) Subject: Start on a testcase for TIKA-705 (more work needed though) X-Git-Tag: REL_3_8_BETA5~168 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bd6b5d24947b58629a0f816fb464994a7ac829ea;p=poi.git 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 --- 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 Binary files /dev/null and b/test-data/slideshow/with_japanese.pptx differ