1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 07:08:08 +02:00
pdf.js/test
Tim van der Meij c9a923066b
Modernize the calculateMD5 test helper function
The test helper code largely predates the introduction of modern
JavaScript features and should be refactored to improve readability.
In particular callbacks and recursive function calls make the code
harder to understand and maintain.

This commit:

- replaces the callback argument with returning a promise;
- uses `const` instead of `var`;
- uses arrow functions for shorter code;
- uses template strings for shorter string formatting code;
- improves the error messages to have more details.
2023-12-03 20:42:45 +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 fuzz: initial integration 2023-12-03 18:52:48 +05:30
images [Editor] Support svg images in the stamp annotation 2023-07-07 15:59:13 +02:00
integration Use "count" and not "clickCount" when calling page.mouse.click() 2023-11-30 09:40:57 +01:00
pdfs Don't throw when there isn't enough data to get block info in flate stream 2023-11-26 18:12:22 +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 Disable the "should compress and save text" unit-test in additional Node.js versions (PR 17202 follow-up) 2023-11-30 20:47:15 +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 calculateMD5 test helper function 2023-12-03 20:42:45 +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 Make sure that only one radio button is checked in its group (bug 1864136) 2023-11-23 17:01:49 +01:00
integration-boot.mjs Rename the integration test-files, in preparation for converting them to modules 2023-10-12 13:17:56 +02:00
test.mjs [Editor] Add a way to extract the outlines of a union of rectangles 2023-11-20 18:45:19 +01:00
test_manifest.json Don't throw when there isn't enough data to get block info in flate stream 2023-11-26 18:12:22 +01:00
test_slave.html [api-minor] Move to Fluent for the localization (bug 1858715) 2023-10-19 11:20:41 +02: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