You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ta...@apache.org on 2013/08/08 16:50:15 UTC
svn commit: r1511816 - in /tika/trunk: CHANGES.txt
tika-core/src/test/java/org/apache/tika/mime/MimeDetectionTest.java
tika-core/src/test/resources/org/apache/tika/mime/test-tika-327.html
Author: tallison
Date: Thu Aug 8 14:50:15 2013
New Revision: 1511816
URL: http://svn.apache.org/r1511816
Log:
Tika 1139 update to 1129
Added:
tika/trunk/tika-core/src/test/resources/org/apache/tika/mime/test-tika-327.html
Modified:
tika/trunk/CHANGES.txt
tika/trunk/tika-core/src/test/java/org/apache/tika/mime/MimeDetectionTest.java
Modified: tika/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/tika/trunk/CHANGES.txt?rev=1511816&r1=1511815&r2=1511816&view=diff
==============================================================================
--- tika/trunk/CHANGES.txt (original)
+++ tika/trunk/CHANGES.txt Thu Aug 8 14:50:15 2013
@@ -1,5 +1,6 @@
Release 1.5 - Current Development
+ * Added sanitized test HTML file for local file test (Tika-1139).
Release 1.4 - 06/15/2013
Modified: tika/trunk/tika-core/src/test/java/org/apache/tika/mime/MimeDetectionTest.java
URL: http://svn.apache.org/viewvc/tika/trunk/tika-core/src/test/java/org/apache/tika/mime/MimeDetectionTest.java?rev=1511816&r1=1511815&r2=1511816&view=diff
==============================================================================
--- tika/trunk/tika-core/src/test/java/org/apache/tika/mime/MimeDetectionTest.java (original)
+++ tika/trunk/tika-core/src/test/java/org/apache/tika/mime/MimeDetectionTest.java Thu Aug 8 14:50:15 2013
@@ -61,7 +61,7 @@ public class MimeDetectionTest extends T
"http://www.w3.org/2002/07/owl#",
"test-difficult-rdf2.xml");
// add evil test from TIKA-327
- testUrlOnly("text/html", "http://www.nheri.org");
+ testFile("text/html", "test-tika-327.html");
// add another evil html test from TIKA-357
testFile("text/html", "testlargerbuffer.html");
// test fragment of HTML with <div> (TIKA-1102)
Added: tika/trunk/tika-core/src/test/resources/org/apache/tika/mime/test-tika-327.html
URL: http://svn.apache.org/viewvc/tika/trunk/tika-core/src/test/resources/org/apache/tika/mime/test-tika-327.html?rev=1511816&view=auto
==============================================================================
--- tika/trunk/tika-core/src/test/resources/org/apache/tika/mime/test-tika-327.html (added)
+++ tika/trunk/tika-core/src/test/resources/org/apache/tika/mime/test-tika-327.html Thu Aug 8 14:50:15 2013
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="iso-8859-1"?><link href="http://www.apache.org" rel="stylesheet" type="text/css" />
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<title>title</title>
+<meta name="description" content="content" />
+<meta name="keywords" content="keys" />
+<script language="JavaScript" type="text/javascript">
+<!--
+function hello() {
+}
+//-->
+
+
+</script>
+
+<!-- IE fix -->
+<style type="text/css">form { display: inline }</style>
+<!--
+comment
+-->
+</head>
+
+<body>
+<table>
+ <tr>
+ <td>
+ <table>
+ <tr>
+ <td><font class="title"><!--comment--><a href="index.php">image</a></font></td>
+ <td> <table>
+ <tr>
+ <td>
+ </td>
+ </tr>
+ </table></td>
+
+
+
+ </tr>
+ <tr>
+ <td>
+ <span class="class">Home </span> </span>
+ </td>
+ <td>
+ July 2, 2013 </td>
+ </tr>
+ </table></td>
+ </tr>
+</table>
+end of table
+</body>
\ No newline at end of file