Adds test for issue 3371 and enables testing with password.

This commit is contained in:
Yury Delendik 2013-06-23 13:20:47 -05:00
parent 510387f551
commit 27c8291ea1
4 changed files with 12 additions and 1 deletions

View File

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

View File

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

BIN
test/pdfs/issue3371.pdf Normal file

Binary file not shown.

View File

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