1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-18 14:18:23 +02:00
pdf.js/test/unit
Jonas Jenwald 6b961c424f Update Webpack to version 5.99.5 (issue 19808)
In Webpack version `5.99.0` the way that `export` statements are handled was changed slightly, with much less boilerplate code being generated, which unfortunately breaks our `tweakWebpackOutput` function that's used to expose the exported properties globally and that e.g. the viewer depends upon.

Given that we were depending on formatting that should most likely be viewed as nothing more than an internal implementation detail in Webpack, we instead work-around this by manually defining the structures that were previously generated.
Obviously this will lead to a tiny bit more manual work in the future, however we don't change the API-surface often enough that it should be a big issue *and* the relevant unit-tests are updated such that it shouldn't be possible to break this.

*NOTE:* In the future we might want to consider no longer using global properties like this, and instead rely only on proper `export`s throughout the code-base.
However changing this would likely be non-trivial (given edge-cases), and it'd be an `api-major` change, so let's just do the minimal amount of work to unblock Webpack updates for now.
2025-04-13 16:48:19 +02:00
..
annotation_spec.js [api-minor] Use a Path2D when doing a path operation in the canvas (bug 1946953) 2025-03-22 20:35:24 +01:00
annotation_storage_spec.js [api-minor] Replace various getAll methods with iterators 2025-04-06 21:43:16 +02:00
api_spec.js [api-minor] Use a Path2D when doing a path operation in the canvas (bug 1946953) 2025-03-22 20:35:24 +01:00
app_options_spec.js Add better validation for the "PREFERENCE" kind AppOptions 2024-02-20 18:38:15 +01:00
autolinker_spec.js Fix autolinking errors due to regex and email validation 2025-02-19 13:18:31 +01:00
bidi_spec.js Tweak the Bidi-detection heuristics for very short RTL strings (issue 11656) 2021-11-03 20:31:57 +01:00
canvas_factory_spec.js Move the various DOM-factories into their own files 2024-11-01 13:31:28 +01:00
cff_parser_spec.js Use shorter arrow functions where possible 2024-01-21 10:13:12 +01:00
clitests.json Enable automatic URL linking 2025-02-05 16:56:54 +01:00
clitests_helper.js [api-minor] Load Node.js packages/polyfills with process.getBuiltinModule 2024-11-03 16:13:58 +01:00
cmap_spec.js Inline the default Factory-definitions in getDocument 2025-01-18 14:09:14 +01:00
colorspace_spec.js Support using ICC profiles in using qcms (bug 860023) 2025-03-05 10:29:59 +01:00
common_pdfstream_tests.js Add test cases for redirected responses 2024-12-02 17:57:49 +01:00
core_utils_spec.js When updating, write the xref table in the same format as the previous one (bug 1878916) 2024-02-13 14:14:37 +01:00
crypto_spec.js Move the calculateSHA384 and calculateSHA512 functions into their own file 2025-03-08 15:56:22 +01:00
custom_spec.js Inline the default Factory-definitions in getDocument 2025-01-18 14:09:14 +01:00
default_appearance_spec.js Add a GlobalColorSpaceCache to reduce unnecessary re-parsing 2025-03-01 14:21:05 +01:00
display_utils_spec.js Use the toBase64Util helper function in the unit-tests 2024-11-03 11:25:19 +01:00
document_spec.js Fix missing annotation parent in using the one from the Fields entry 2024-10-04 20:00:19 +02:00
editor_spec.js Add the possibility to compress/decompress the signature data in order to store them in the logins storage in Firefox (bug 1946171) 2025-02-10 19:09:51 +01:00
encodings_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
evaluator_spec.js [api-minor] Use a Path2D when doing a path operation in the canvas (bug 1946953) 2025-03-22 20:35:24 +01:00
event_utils_spec.js Add signal-support in the EventBus, and utilize it in the viewer (PR 17964 follow-up) 2024-04-20 12:00:58 +02:00
fetch_stream_spec.js Add test cases for redirected responses 2024-12-02 17:57:49 +01:00
font_substitutions_spec.js Remove the tag for missing font subset when trying to find a substitution 2024-04-11 20:34:28 +02:00
function_spec.js Correct PostScript trigonometric operators 2023-03-03 17:25:11 -05:00
jasmine-boot.js Use arrow function with various Array methods 2025-03-02 15:19:04 +01:00
message_handler_spec.js [api-minor] Replace the PromiseCapability with Promise.withResolvers() 2024-04-01 11:42:37 +02:00
metadata_spec.js [api-minor] Replace various getAll methods with iterators 2025-04-06 21:43:16 +02:00
murmurhash3_spec.js Replace the AnnotationStorage.lastModified-getter with a proper hash-method 2022-05-04 15:21:30 +02:00
network_spec.js [api-major] Replace MissingPDFException and UnexpectedResponseException with one exception 2025-01-16 22:51:05 +01:00
network_utils_spec.js [api-major] Replace MissingPDFException and UnexpectedResponseException with one exception 2025-01-16 22:51:05 +01:00
node_stream_spec.js [api-minor] Only support the Fetch API for "remote" PDF documents in Node.js environments 2024-11-03 16:18:10 +01:00
parser_spec.js Let Lexer.prototype.getNumber treat more cases of a single minus sign as zero (bug 1953099) 2025-03-12 17:50:13 +01:00
pdf.image_decoders_spec.js Update Webpack to version 5.99.5 (issue 19808) 2025-04-13 16:48:19 +02:00
pdf.worker_spec.js Update Webpack to version 5.99.5 (issue 19808) 2025-04-13 16:48:19 +02:00
pdf_find_controller_spec.js Introduce Math.sumPrecise usage in the code-base 2025-03-23 13:03:56 +01:00
pdf_find_utils_spec.js Run gulp lint --fix, to account for changes in Prettier version 2.1.x 2020-09-06 12:23:59 +02:00
pdf_history_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
pdf_spec.js Update Webpack to version 5.99.5 (issue 19808) 2025-04-13 16:48:19 +02:00
pdf_viewer.component_spec.js Update Webpack to version 5.99.5 (issue 19808) 2025-04-13 16:48:19 +02:00
pdf_viewer_spec.js Remove the abstract BaseViewer-class 2022-09-08 12:38:17 +02:00
primitives_spec.js Replace the forEach method in Dict with "proper" iteration support 2024-11-17 12:45:32 +01:00
scripting_spec.js Use Array-destructuring when computing MIN/MAX in AFSimple_Calculate 2025-04-06 11:44:08 +02:00
stream_spec.js [api-minor] Remove the forceClamped-functionality in the Streams (issue 14849) 2022-04-29 14:46:30 +02:00
struct_tree_spec.js Make tagged images visible for screen readers (bug 1708040) 2024-09-05 17:59:42 +02:00
svg_factory_spec.js Move the various DOM-factories into their own files 2024-11-01 13:31:28 +01:00
test_utils.js Inline the default Factory-definitions in getDocument 2025-01-18 14:09:14 +01:00
text_layer_spec.js Ensure that textLayers can be rendered in parallel, without interfering with each other 2024-09-11 15:28:51 +02:00
type1_parser_spec.js Move some constants and helper functions from src/core/fonts.js and into their own file 2021-05-02 21:00:29 +02:00
ui_utils_spec.js Remove Array.prototype.reduce usage from the unit-tests 2025-04-06 12:12:37 +02:00
unicode_spec.js [api-minor] Don't normalize the text used in the text layer. 2023-04-17 14:31:23 +02:00
unit_test.html [api-major] Add openjpeg.wasm to pdf.js (bug 1935076) 2025-01-16 21:09:50 +01:00
util_spec.js Simplify the getUuid helper function 2024-11-21 13:11:10 +01:00
writer_spec.js Pass the /Info-strings as a Map to the src/core/writer.js code 2025-04-04 13:36:13 +02:00
xfa_formcalc_spec.js Fix property chain orders of Operators in isDotExpression and isSomPredicate 2022-09-21 17:20:23 +02:00
xfa_parser_spec.js Prevent duplicate names in unit/integration tests 2024-02-11 11:45:09 +01:00
xfa_serialize_data_spec.js Enable the import/no-cycle ESLint plugin rule 2023-06-04 13:44:15 +02:00
xfa_tohtml_spec.js Take the absolute value of the font size when the annotation contents is in xhtml (bug 1938087) 2024-12-18 17:00:45 +01:00
xml_spec.js Enable the unicorn/prefer-string-replace-all ESLint plugin rule 2023-03-23 12:57:10 +01:00