You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by mi...@apache.org on 2011/11/05 12:01:38 UTC

svn commit: r1197925 - /tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/microsoft/PowerPointParserTest.java

Author: mikemccand
Date: Sat Nov  5 11:01:38 2011
New Revision: 1197925

URL: http://svn.apache.org/viewvc?rev=1197925&view=rev
Log:
TIKA-712: strengthen the test cases here to not only validate the text came through but also to make sure boilerplate text did not

Modified:
    tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/microsoft/PowerPointParserTest.java

Modified: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/microsoft/PowerPointParserTest.java
URL: http://svn.apache.org/viewvc/tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/microsoft/PowerPointParserTest.java?rev=1197925&r1=1197924&r2=1197925&view=diff
==============================================================================
--- tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/microsoft/PowerPointParserTest.java (original)
+++ tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/microsoft/PowerPointParserTest.java Sat Nov  5 11:01:38 2011
@@ -129,6 +129,9 @@ public class PowerPointParserTest extend
 
         String content = handler.toString();
         assertContains("Master footer is here", content);
+
+        // Make sure boilerplate text didn't come through:
+        assertEquals(-1, content.indexOf("Click to edit Master"));
     }
 
     // TODO: once we fix TIKA-712, re-enable this
@@ -147,6 +150,9 @@ public class PowerPointParserTest extend
 
         String content = handler.toString();
         assertContains("Text that I added to the master slide", content);
+
+        // Make sure boilerplate text didn't come through:
+        assertEquals(-1, content.indexOf("Click to edit Master"));
     }
     */
 
@@ -166,6 +172,9 @@ public class PowerPointParserTest extend
 
         String content = handler.toString();
         assertContains("Text that I added to the master slide", content);
+
+        // Make sure boilerplate text didn't come through:
+        assertEquals(-1, content.indexOf("Click to edit Master"));
     }
     */