Browse Source

Add support for the `nativeImageDecoderSupport` parameter, to force JPEG image decoding using `src/core/jpg.js`, when running the reference tests

Jonas Jenwald 8 years ago
parent
commit
11e95712d4
  1. 1
      test/driver.js
  2. 9
      test/test_manifest.json

1
test/driver.js

@ -358,6 +358,7 @@ var Driver = (function DriverClosure() { // eslint-disable-line no-unused-vars
PDFJS.getDocument({ PDFJS.getDocument({
url: absoluteUrl, url: absoluteUrl,
password: task.password, password: task.password,
nativeImageDecoderSupport: task.nativeImageDecoderSupport,
}).then((doc) => { }).then((doc) => {
task.pdfDoc = doc; task.pdfDoc = doc;
this._nextPage(task, failure); this._nextPage(task, failure);

9
test/test_manifest.json

@ -3378,6 +3378,15 @@
"link": true, "link": true,
"type": "eq" "type": "eq"
}, },
{ "id": "issue4926-built-in-jpg",
"file": "pdfs/issue4926.pdf",
"md5": "ed881c8ea2f9bc4be94ecb7f2b2c149b",
"rounds": 1,
"link": true,
"lastPage": 1,
"type": "eq",
"nativeImageDecoderSupport": "none"
},
{ "id": "issue5592", { "id": "issue5592",
"file": "pdfs/issue5592.pdf", "file": "pdfs/issue5592.pdf",
"md5": "a0750f95afa80c880f7966df7062616c", "md5": "a0750f95afa80c880f7966df7062616c",

Loading…
Cancel
Save