pdf.js/test
Tim van der Meij 0a10a7b57b
Modernize the downloadManifestFiles/ensurePDFsDownloaded test helper functions
The test helper code largely predates the introduction of modern
JavaScript features and should be refactored to improve readability.
In particular callbacks make the code harder to understand and maintain.

This commit:

- replaces the callback argument with returning a promise;
- replaces the recursive function calls with a simple loop;
- uses `const`/`let` instead of `var`;
- uses arrow functions for shorter code;
- uses template strings for shorter string formatting code.
2023-12-17 21:53:50 +01:00
..
chromium Enable the import/no-commonjs ESLint plugin rule 2023-10-14 12:49:17 +02:00
font Introduce a GitHub Actions workflow for running the font tests 2023-11-12 17:48:04 +01:00
fuzz Limit the amount of console "spam" during fuzz tests (PR 17337 follow-up) 2023-12-04 16:39:45 +01:00
images [Editor] Support svg images in the stamp annotation 2023-07-07 15:59:13 +02:00
integration Merge pull request #17400 from calixteman/autoprint_test 2023-12-09 20:12:45 +01:00
pdfs Support Annotations with corrupt /BS-entries 2023-12-09 10:36:18 +01:00
resources Enable the declaration-block-no-redundant-longhand-properties Stylelint rule 2023-03-25 10:08:27 +01:00
stats Enable the import/no-commonjs ESLint plugin rule 2023-10-14 12:49:17 +02:00
types Rename *.d.ts to *.d.mts. Close #17241 2023-11-12 07:30:36 +09:00
unit Merge pull request #17395 from Snuffleupagus/pypdf-2332 2023-12-09 14:18:29 +01:00
.eslintrc Enable ESLint rules that no longer need to be disabled on a directory/file-basis 2021-01-22 17:47:03 +01:00
.gitignore Ignore test snapshots directory. 2013-03-15 11:24:08 -07:00
add_test.mjs [ESM] Convert *most* of test-folder to use standard modules 2023-07-08 13:13:04 +02:00
annotation_layer_builder_overrides.css Use CSS nesting in the annotationLayer 2023-10-27 18:46:47 +02:00
downloadutils.mjs Modernize the downloadManifestFiles/ensurePDFsDownloaded test helper functions 2023-12-17 21:53:50 +01:00
draw_layer_test.css [Editor] Add a way to extract the outlines of a union of rectangles 2023-11-20 18:45:19 +01:00
driver.js [Editor] Avoid conflicts between new persistent refs and the ones created when saving (bug 1865341) 2023-12-05 12:33:21 +01:00
integration-boot.mjs [Editor] Don't remove elements from the draw layer after it has been destroyed 2023-12-05 22:41:20 +01:00
test_manifest.json Support Annotations with corrupt /BS-entries 2023-12-09 10:36:18 +01:00
test_slave.html [api-minor] Move to Fluent for the localization (bug 1858715) 2023-10-19 11:20:41 +02:00
test.mjs Modernize the downloadManifestFiles/ensurePDFsDownloaded test helper functions 2023-12-17 21:53:50 +01:00
testutils.mjs [ESM] Convert *most* of test-folder to use standard modules 2023-07-08 13:13:04 +02:00
text_layer_test.css Use CSS nesting in the textLayer 2023-10-27 17:38:01 +02:00
webserver.mjs [api-minor] Move to Fluent for the localization (bug 1858715) 2023-10-19 11:20:41 +02:00
xfa_layer_builder_overrides.css Remove unnecessary alpha-value from CSS rgb colors 2023-10-06 09:50:03 +02:00