From f6662d3f7ca9fb24116f400f7527d62e94d43934 Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Sun, 8 Dec 2024 16:06:25 +0100 Subject: [PATCH] Add a ref test for setting disableFontFace to true --- test/driver.js | 2 ++ test/test_manifest.json | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/test/driver.js b/test/driver.js index 15c6c5952ceb3..34b28b22a5fb9 100644 --- a/test/driver.js +++ b/test/driver.js @@ -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; diff --git a/test/test_manifest.json b/test/test_manifest.json index 30dffed82a0af..17dd176ed32e0 100644 --- a/test/test_manifest.json +++ b/test/test_manifest.json @@ -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" } ]