[Pkg-javascript-commits] [pdf.js] 51/246: Add a couple of reduced test-cases for PR 4259
David Prévot
taffit at moszumanska.debian.org
Sun Sep 7 15:36:24 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit 26f5b1b2d37c7b74a073dee75d66fcc04fae10e8
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date: Thu Jul 31 13:46:11 2014 +0200
Add a couple of reduced test-cases for PR 4259
PR 4259 fixed a large number of font bugs, but none of those where added as test-cases. This was, in my opinion, unfortunate since it increases the risk of regressions in the future when other font bugs are fixed.
This PR simply adds a few more test-cases, to improve our test coverage somewhat.
---
test/pdfs/.gitignore | 3 ++
test/pdfs/issue2931.pdf | Bin 0 -> 25688 bytes
test/pdfs/issue3323.pdf | Bin 0 -> 40553 bytes
test/pdfs/issue4304.pdf | 78 ++++++++++++++++++++++++++++++++++++++++++++++++
test/test_manifest.json | 21 +++++++++++++
5 files changed, 102 insertions(+)
diff --git a/test/pdfs/.gitignore b/test/pdfs/.gitignore
index d2a0826..77da225 100644
--- a/test/pdfs/.gitignore
+++ b/test/pdfs/.gitignore
@@ -34,6 +34,9 @@
!issue918.pdf
!issue1905.pdf
!issue2833.pdf
+!issue2931.pdf
+!issue3323.pdf
+!issue4304.pdf
!issue4550.pdf
!rotated.pdf
!issue1249.pdf
diff --git a/test/pdfs/issue2931.pdf b/test/pdfs/issue2931.pdf
new file mode 100644
index 0000000..3149aab
Binary files /dev/null and b/test/pdfs/issue2931.pdf differ
diff --git a/test/pdfs/issue3323.pdf b/test/pdfs/issue3323.pdf
new file mode 100644
index 0000000..be69953
Binary files /dev/null and b/test/pdfs/issue3323.pdf differ
diff --git a/test/pdfs/issue4304.pdf b/test/pdfs/issue4304.pdf
new file mode 100644
index 0000000..d2e8c4f
--- /dev/null
+++ b/test/pdfs/issue4304.pdf
@@ -0,0 +1,78 @@
+%PDF-1.7
+101 0 obj
+<<
+/Type /Catalog
+/Pages 102 0 R
+>>
+endobj
+102 0 obj
+<<
+/Type /Pages
+/MediaBox [ 0 0 200 50 ]
+/Count 1
+/Kids [ 103 0 R ]
+>>
+endobj
+103 0 obj
+<<
+/Type /Page
+/Parent 102 0 R
+/Resources <<
+/Font <<
+/F1 104 0 R
+>>
+
+>>
+
+/Contents 105 0 R
+>>
+endobj
+104 0 obj
+<<
+/BaseFont /Times-Roman
+/Type /Font
+/Encoding 97 0 R
+/Subtype /Type1
+>>
+endobj
+105 0 obj
+<<
+/Length 74
+>>
+stream
+BT
+10 20 TD
+/F1 10 Tf
+(Words that should have spaces between them.) Tj
+ET
+endstream
+endobj
+97 0 obj
+<<
+/Type /Encoding
+/Differences [ 32 /.notdef 39 /quotesingle 145 /quoteleft /quoteright 150 /endash 232 /egrave /eacute 246 /odieresis 252 /udieresis ]
+>>
+endobj
+xref
+0 1
+0000000000 65535 f
+97 1
+0000000478 00000 n
+101 1
+0000000009 00000 n
+102 1
+0000000062 00000 n
+103 1
+0000000150 00000 n
+104 1
+0000000262 00000 n
+105 1
+0000000353 00000 n
+trailer
+<<
+/Size 6
+/Root 101 0 R
+>>
+startxref
+650
+%%EOF
\ No newline at end of file
diff --git a/test/test_manifest.json b/test/test_manifest.json
index 2fa5dfc..b3af44c 100644
--- a/test/test_manifest.json
+++ b/test/test_manifest.json
@@ -863,6 +863,27 @@
"link": true,
"type": "eq"
},
+ { "id": "issue2931",
+ "file": "pdfs/issue2931.pdf",
+ "md5": "ea40940eaf3541b312bda9329167da11",
+ "link": false,
+ "rounds": 1,
+ "type": "eq"
+ },
+ { "id": "issue3323",
+ "file": "pdfs/issue3323.pdf",
+ "md5": "1a14ff574013caeafa9d598269988764",
+ "link": false,
+ "rounds": 1,
+ "type": "eq"
+ },
+ { "id": "issue4304",
+ "file": "pdfs/issue4304.pdf",
+ "md5": "1b1205bf0d7c1ad22a154b60da8e694d",
+ "link": false,
+ "rounds": 1,
+ "type": "eq"
+ },
{ "id": "zerowidthline",
"file": "pdfs/zerowidthline.pdf",
"md5": "295d26e61a85635433f8e4b768953f60",
--
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