Merge pull request #19197 from calixteman/test_disableFontFace
Add a ref test for setting disableFontFace to true
This commit is contained in:
commit
6177bb5aa8
@ -624,6 +624,7 @@ class Driver {
|
|||||||
}
|
}
|
||||||
const isOffscreenCanvasSupported =
|
const isOffscreenCanvasSupported =
|
||||||
task.isOffscreenCanvasSupported === false ? false : undefined;
|
task.isOffscreenCanvasSupported === false ? false : undefined;
|
||||||
|
const disableFontFace = task.disableFontFace === true;
|
||||||
|
|
||||||
const loadingTask = getDocument({
|
const loadingTask = getDocument({
|
||||||
url: new URL(task.file, window.location),
|
url: new URL(task.file, window.location),
|
||||||
@ -637,6 +638,7 @@ class Driver {
|
|||||||
enableXfa: task.enableXfa,
|
enableXfa: task.enableXfa,
|
||||||
isOffscreenCanvasSupported,
|
isOffscreenCanvasSupported,
|
||||||
styleElement: xfaStyleElement,
|
styleElement: xfaStyleElement,
|
||||||
|
disableFontFace,
|
||||||
});
|
});
|
||||||
let promise = loadingTask.promise;
|
let promise = loadingTask.promise;
|
||||||
|
|
||||||
|
|||||||
@ -11208,5 +11208,13 @@
|
|||||||
"md5": "497370ab55cbb9c60bb0ea4b5d9e4d08",
|
"md5": "497370ab55cbb9c60bb0ea4b5d9e4d08",
|
||||||
"rounds": 1,
|
"rounds": 1,
|
||||||
"type": "eq"
|
"type": "eq"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tracemonkey-disableFontFace-eq",
|
||||||
|
"file": "pdfs/tracemonkey.pdf",
|
||||||
|
"md5": "9a192d8b1a7dc652a19835f6f08098bd",
|
||||||
|
"rounds": 1,
|
||||||
|
"disableFontFace": true,
|
||||||
|
"type": "eq"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user