d022912719
By leveraging import maps we can get rid of *most* of the remaining `require`-calls in the `src/display/`-folder, since we should strive to use modern `import`-statements wherever possible. The only remaining cases are Node.js-specific dependencies, since those seem very difficult to convert unless we start producing a bundle *specifically* for Node.js environments.
49 lines
2.0 KiB
HTML
49 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>pdf.js unit test</title>
|
|
|
|
<link rel="stylesheet" type="text/css" href="../../node_modules/jasmine-core/lib/jasmine-core/jasmine.css">
|
|
|
|
<script src="../../node_modules/jasmine-core/lib/jasmine-core/jasmine.js"></script>
|
|
<script src="../../node_modules/jasmine-core/lib/jasmine-core/jasmine-html.js"></script>
|
|
|
|
<script defer src="../../node_modules/es-module-shims/dist/es-module-shims.js"></script>
|
|
<script type="importmap-shim">
|
|
{
|
|
"imports": {
|
|
"pdfjs/": "../../src/",
|
|
"pdfjs-lib": "../../src/pdf.js",
|
|
"pdfjs-web/": "../../web/",
|
|
"pdfjs-test/": "../",
|
|
|
|
"display-fetch_stream": "../../src/display/fetch_stream.js",
|
|
"display-l10n_utils": "../../src/display/stubs.js",
|
|
"display-network": "../../src/display/network.js",
|
|
"display-node_stream": "../../src/display/stubs.js",
|
|
"display-node_utils": "../../src/display/stubs.js",
|
|
"display-svg": "../../src/display/stubs.js",
|
|
|
|
"web-annotation_editor_params": "../../web/annotation_editor_params.js",
|
|
"web-com": "../../web/genericcom.js",
|
|
"web-pdf_attachment_viewer": "../../web/pdf_attachment_viewer.js",
|
|
"web-pdf_cursor_tools": "../../web/pdf_cursor_tools.js",
|
|
"web-pdf_document_properties": "../../web/pdf_document_properties.js",
|
|
"web-pdf_find_bar": "../../web/pdf_find_bar.js",
|
|
"web-pdf_layer_viewer": "../../web/pdf_layer_viewer.js",
|
|
"web-pdf_outline_viewer": "../../web/pdf_outline_viewer.js",
|
|
"web-pdf_presentation_mode": "../../web/pdf_presentation_mode.js",
|
|
"web-pdf_sidebar": "../../web/pdf_sidebar.js",
|
|
"web-pdf_thumbnail_viewer": "../../web/pdf_thumbnail_viewer.js",
|
|
"web-print_service": "../../web/pdf_print_service.js",
|
|
"web-secondary_toolbar": "../../web/secondary_toolbar.js",
|
|
"web-toolbar": "../../web/toolbar.js"
|
|
}
|
|
}
|
|
</script>
|
|
<script src="jasmine-boot.js" type="module-shim"></script>
|
|
</head>
|
|
<body>
|
|
</body>
|
|
</html>
|