[Pkg-javascript-commits] [pdf.js] 125/414: Replace the linked test-case for issue 1155 with a reduced one

David Prévot taffit at moszumanska.debian.org
Tue Jun 28 17:12:13 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit b4020047bc8a3e6ec77e5d119720d548f704142f
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Sat Jan 16 15:51:10 2016 +0100

    Replace the linked test-case for issue 1155 with a reduced one
    
    As part of the link cleanup in issue 6854, obtaining this file through the Internet Archive didn't work.
    However, given that the file was added in order to test an issue with `CropBox/MediaBox`, a reduced test-case should do just fine instead.
    
    Please refer to issue 1155, and PR 1212.
---
 test/pdfs/.gitignore         |  1 +
 test/pdfs/issue1155.pdf.link |  1 -
 test/pdfs/issue1155r.pdf     | 70 ++++++++++++++++++++++++++++++++++++++++++++
 test/test_manifest.json      |  6 ++--
 4 files changed, 74 insertions(+), 4 deletions(-)

diff --git a/test/pdfs/.gitignore b/test/pdfs/.gitignore
index fe8e207..23b656a 100644
--- a/test/pdfs/.gitignore
+++ b/test/pdfs/.gitignore
@@ -7,6 +7,7 @@
 !franz_2.pdf
 !german-umlaut-r.pdf
 !xref_command_missing.pdf
+!issue1155r.pdf
 !issue2391-1.pdf
 !issue2391-2.pdf
 !issue4665.pdf
diff --git a/test/pdfs/issue1155.pdf.link b/test/pdfs/issue1155.pdf.link
deleted file mode 100644
index 13df4e0..0000000
--- a/test/pdfs/issue1155.pdf.link
+++ /dev/null
@@ -1 +0,0 @@
-http://www.madbad.altervista.org/_altervista_ht/2142.pdf
diff --git a/test/pdfs/issue1155r.pdf b/test/pdfs/issue1155r.pdf
new file mode 100644
index 0000000..6e53031
--- /dev/null
+++ b/test/pdfs/issue1155r.pdf
@@ -0,0 +1,70 @@
+%PDF-1.7
+%����
+1 0 obj 
+<<
+/Pages 2 0 R
+/Type /Catalog
+>>
+endobj 
+2 0 obj 
+<<
+/Kids [3 0 R]
+/Count 1
+/Type /Pages
+>>
+endobj 
+3 0 obj 
+<<
+/CropBox [0 0 1687.41 2386.46]
+/Parent 2 0 R
+/TrimBox [0 0 4783.2 6764.77]
+/MediaBox [0 0 595.28 841.890]
+/Resources 
+<<
+/Font 
+<<
+/F1 4 0 R
+>>
+>>
+/BleedBox [0 0 4783.2 6764.77]
+/Contents 5 0 R
+/Type /Page
+>>
+endobj 
+4 0 obj 
+<<
+/BaseFont /Times-Roman
+/Subtype /Type1
+/Encoding /WinAnsiEncoding
+/Type /Font
+>>
+endobj 
+5 0 obj 
+<<
+/Length 85
+>>
+stream
+BT
+1 0 0 1 50 600 Tm
+/F1 20 Tf
+(Issue 1155 - Intersect /CropBox and /MediaBox) Tj
+ET
+
+endstream 
+endobj xref
+0 6
+0000000000 65535 f 
+0000000015 00000 n 
+0000000066 00000 n 
+0000000125 00000 n 
+0000000354 00000 n 
+0000000455 00000 n 
+trailer
+
+<<
+/Root 1 0 R
+/Size 6
+>>
+startxref
+592
+%%EOF
diff --git a/test/test_manifest.json b/test/test_manifest.json
index c62dda6..f025181 100644
--- a/test/test_manifest.json
+++ b/test/test_manifest.json
@@ -1638,10 +1638,10 @@
       "type": "eq"
     },
     {  "id": "issue1155",
-      "file": "pdfs/issue1155.pdf",
-      "md5": "b732ef25c16c9c20a77e40edef5aa6fe",
+      "file": "pdfs/issue1155r.pdf",
+      "md5": "8d772a3c6109bda860b8d80d42d4c08c",
       "rounds": 1,
-      "link": true,
+      "link": false,
       "type": "eq"
     },
     {  "id": "link-annotation-border",

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list