mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Merge pull request #19197 from calixteman/test_disableFontFace
Add a ref test for setting disableFontFace to true
This commit is contained in:
commit
6177bb5aa8
2 changed files with 10 additions and 0 deletions
|
@ -624,6 +624,7 @@ class Driver {
|
|||
}
|
||||
const isOffscreenCanvasSupported =
|
||||
task.isOffscreenCanvasSupported === false ? false : undefined;
|
||||
const disableFontFace = task.disableFontFace === true;
|
||||
|
||||
const loadingTask = getDocument({
|
||||
url: new URL(task.file, window.location),
|
||||
|
@ -637,6 +638,7 @@ class Driver {
|
|||
enableXfa: task.enableXfa,
|
||||
isOffscreenCanvasSupported,
|
||||
styleElement: xfaStyleElement,
|
||||
disableFontFace,
|
||||
});
|
||||
let promise = loadingTask.promise;
|
||||
|
||||
|
|
|
@ -11208,5 +11208,13 @@
|
|||
"md5": "497370ab55cbb9c60bb0ea4b5d9e4d08",
|
||||
"rounds": 1,
|
||||
"type": "eq"
|
||||
},
|
||||
{
|
||||
"id": "tracemonkey-disableFontFace-eq",
|
||||
"file": "pdfs/tracemonkey.pdf",
|
||||
"md5": "9a192d8b1a7dc652a19835f6f08098bd",
|
||||
"rounds": 1,
|
||||
"disableFontFace": true,
|
||||
"type": "eq"
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue