Skip to content

Commit d4b1634

Browse files
committedOct 18, 2014
WEBP sample file from Nelson Monterroso, and associated unit test for TIKA-1450
git-svn-id: https://svn.apache.org/repos/asf/tika/trunk@1632700 13f79535-47bb-0310-9956-ffa450edef68
1 parent 0386c74 commit d4b1634

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
 

‎tika-parsers/src/test/java/org/apache/tika/mime/TestMimeTypes.java

+8
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,14 @@ public void testPngDetection() throws Exception {
362362
assertTypeByName("image/png", "x.PNG");
363363
}
364364

365+
@Test
366+
public void testWEBPDetection() throws Exception {
367+
assertType("image/webp", "testWEBP.webp");
368+
assertTypeByData("image/webp", "testWEBP.webp");
369+
assertTypeByName("image/webp", "x.webp");
370+
assertTypeByName("image/webp", "x.WEBP");
371+
}
372+
365373
@Test
366374
public void testBmpDetection() throws Exception {
367375
assertType("image/x-ms-bmp", "testBMP.bmp");
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.