Skip to content

Commit

Permalink
Merge pull request #19197 from calixteman/test_disableFontFace
Browse files Browse the repository at this point in the history
Add a ref test for setting disableFontFace to true
  • Loading branch information
calixteman authored Dec 8, 2024
2 parents 35573cb + f6662d3 commit 6177bb5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -637,6 +638,7 @@ class Driver {
enableXfa: task.enableXfa,
isOffscreenCanvasSupported,
styleElement: xfaStyleElement,
disableFontFace,
});
let promise = loadingTask.promise;

Expand Down
8 changes: 8 additions & 0 deletions test/test_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]

0 comments on commit 6177bb5

Please sign in to comment.