Fix unit test for dependency tracking

Follow up to PR #21102
This commit is contained in:
Nicolò Ribaudo 2026-04-21 10:44:53 +02:00
parent ab85b7f0ff
commit f7725254f3
No known key found for this signature in database
GPG Key ID: AAFDA9101C58F338
3 changed files with 4 additions and 2 deletions

View File

@ -34,7 +34,7 @@
"network_utils_spec.js",
"node_stream_spec.js",
"obj_bin_transform_spec.js",
"operation_list_dependencies_spec.js",
"operator_list_dependencies_spec.js",
"parser_spec.js",
"pattern_spec.js",
"pdf.image_decoders_spec.js",

View File

@ -77,7 +77,7 @@ async function initializePDFJS(callback) {
"pdfjs-test/unit/network_spec.js",
"pdfjs-test/unit/network_utils_spec.js",
"pdfjs-test/unit/obj_bin_transform_spec.js",
"pdfjs-test/unit/operation_list_dependencies_spec.js",
"pdfjs-test/unit/operator_list_dependencies_spec.js",
"pdfjs-test/unit/parser_spec.js",
"pdfjs-test/unit/pattern_spec.js",
"pdfjs-test/unit/pdf.image_decoders_spec.js",

View File

@ -76,5 +76,7 @@ describe("dependencies tracking", function () {
dependencies: new Set([0, 1, 2, 6, 7, 8, 12, 13]),
isRenderingOperation: true,
});
await loadingTask.destroy();
});
});