Browse Source

Adds test for issue 3371 and enables testing with password.

Yury Delendik 12 years ago
parent
commit
27c8291ea1
  1. 5
      test/driver.js
  2. 1
      test/pdfs/.gitignore
  3. BIN
      test/pdfs/issue3371.pdf
  4. 7
      test/test_manifest.json

5
test/driver.js

@ -137,7 +137,10 @@ function nextTask() {
PDFJS.disableRange = task.disableRange || masterMode; PDFJS.disableRange = task.disableRange || masterMode;
PDFJS.disableAutoFetch = !task.enableAutoFetch || masterMode; PDFJS.disableAutoFetch = !task.enableAutoFetch || masterMode;
try { try {
var promise = PDFJS.getDocument(absoluteUrl); var promise = PDFJS.getDocument({
url: absoluteUrl,
password: task.password
});
promise.then(function(doc) { promise.then(function(doc) {
task.pdfDoc = doc; task.pdfDoc = doc;
continuation(); continuation();

1
test/pdfs/.gitignore vendored

@ -49,4 +49,5 @@
!noembed-sjis.pdf !noembed-sjis.pdf
!vertical.pdf !vertical.pdf
!issue2099-1.pdf !issue2099-1.pdf
!issue3371.pdf
!issue2956.pdf !issue2956.pdf

BIN
test/pdfs/issue3371.pdf

Binary file not shown.

7
test/test_manifest.json

@ -264,6 +264,13 @@
"rounds": 1, "rounds": 1,
"type": "eq" "type": "eq"
}, },
{ "id": "issue3371",
"file": "pdfs/issue3371.pdf",
"password": "ELXRTQWS",
"md5": "db2fedbd36d6fa27d4e52f9bd2d96b8c",
"rounds": 1,
"type": "load"
},
{ "id": "wdsg_fitc", { "id": "wdsg_fitc",
"file": "pdfs/wdsg_fitc.pdf", "file": "pdfs/wdsg_fitc.pdf",
"md5": "5bb1c2b83705d4cdfc43197ee74f07f9", "md5": "5bb1c2b83705d4cdfc43197ee74f07f9",

Loading…
Cancel
Save