]> source.dussan.org Git - poi.git/commitdiff
Start on a testcase for TIKA-705 (more work needed though)
authorNick Burch <nick@apache.org>
Wed, 14 Sep 2011 14:39:20 +0000 (14:39 +0000)
committerNick Burch <nick@apache.org>
Wed, 14 Sep 2011 14:39:20 +0000 (14:39 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1170648 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java
src/ooxml/testcases/org/apache/poi/xslf/TestXSLFBugs.java
test-data/slideshow/with_japanese.pptx [new file with mode: 0644]

index 2491f68a78c8021ec832011c9c72bdaeecbc58c4..b376d1f78362361f34f41e1d1df9fa604ec58cb7 100644 (file)
@@ -337,7 +337,6 @@ public class XMLSlideShow  extends POIXMLDocument {
         }
         return imageNumber - 1;
     }
-
     public XSLFTableStyles getTableStyles(){
         return _tableStyles;
     }
index 332164f8fa9a507d60e7261089d346d987866ae3..ba49341a2e55ac9f7247482b68b43247a03af67a 100644 (file)
@@ -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 (file)
index 0000000..432a806
Binary files /dev/null and b/test-data/slideshow/with_japanese.pptx differ