Adds test for issue 3371 and enables testing with password.
This commit is contained in:
parent
510387f551
commit
27c8291ea1
@ -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();
|
||||
|
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
@ -49,4 +49,5 @@
|
||||
!noembed-sjis.pdf
|
||||
!vertical.pdf
|
||||
!issue2099-1.pdf
|
||||
!issue3371.pdf
|
||||
!issue2956.pdf
|
||||
|
BIN
test/pdfs/issue3371.pdf
Normal file
BIN
test/pdfs/issue3371.pdf
Normal file
Binary file not shown.
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user