You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2015/02/06 09:33:36 UTC

svn commit: r1657754 - in /pdfbox/trunk/fontbox/src/test: java/org/apache/fontbox/ttf/TestTTFParser.java resources/ttf/LiberationSans-Regular.ttf resources/ttf/testTrueType.ttf

Author: tilman
Date: Fri Feb  6 08:33:35 2015
New Revision: 1657754

URL: http://svn.apache.org/r1657754
Log:
PDFBOX-2383: replace test with copyrighted font with another font

Added:
    pdfbox/trunk/fontbox/src/test/resources/ttf/LiberationSans-Regular.ttf   (with props)
Removed:
    pdfbox/trunk/fontbox/src/test/resources/ttf/testTrueType.ttf
Modified:
    pdfbox/trunk/fontbox/src/test/java/org/apache/fontbox/ttf/TestTTFParser.java

Modified: pdfbox/trunk/fontbox/src/test/java/org/apache/fontbox/ttf/TestTTFParser.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/test/java/org/apache/fontbox/ttf/TestTTFParser.java?rev=1657754&r1=1657753&r2=1657754&view=diff
==============================================================================
--- pdfbox/trunk/fontbox/src/test/java/org/apache/fontbox/ttf/TestTTFParser.java (original)
+++ pdfbox/trunk/fontbox/src/test/java/org/apache/fontbox/ttf/TestTTFParser.java Fri Feb  6 08:33:35 2015
@@ -37,9 +37,7 @@ public class TestTTFParser extends TestC
      */
     public void testUTCDate() throws IOException
     {
-        // ttf file is from TIKA trunk
-        // tika-parsers/src/test/resources/test-documents/testTrueType.ttf
-        final File testFile = new File("src/test/resources/ttf/testTrueType.ttf");
+        final File testFile = new File("src/test/resources/ttf/LiberationSans-Regular.ttf");
         TimeZone utc = TimeZone.getTimeZone("UTC");
         //Before PDFBOX-2122, TTFDataStream was using the default TimeZone
         //Set the default to something not UTC and see if a UTC timeZone is returned
@@ -50,9 +48,9 @@ public class TestTTFParser extends TestC
         assertEquals(created.getTimeZone(), utc);
 
         Calendar target = Calendar.getInstance(utc);
-        target.set(1904, 0, 1, 0, 0, 0);
+        target.set(2012, 9, 4, 11, 2, 31);
         target.set(Calendar.MILLISECOND, 0);
-        assertEquals(created, target);
+        assertEquals(target, created);
     }
 
 }

Added: pdfbox/trunk/fontbox/src/test/resources/ttf/LiberationSans-Regular.ttf
URL: http://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/test/resources/ttf/LiberationSans-Regular.ttf?rev=1657754&view=auto
==============================================================================
Binary file - no diff available.

Propchange: pdfbox/trunk/fontbox/src/test/resources/ttf/LiberationSans-Regular.ttf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream