84 Commits (460c4e38cc2cf62d692ccac7f8642c0fe6318b5d)

Author SHA1 Message Date
Tim van der Meij 2281061882
Enable metadata unit tests for Travis CI and Node.js 8 years ago
Rob Wu 73273ccbe9 Add test for withCredentials option 8 years ago
Jonas Jenwald 16c5d41c5b [api-minor] Add support for PageMode in the API (issue 8657) 8 years ago
Yury Delendik 24f14d44cb Preventing from using the same canvas for multiple render() 8 years ago
Jonas Jenwald efbd68efef Fix inconsistent spacing and trailing commas in objects in `test/` files, so we can enable the `comma-dangle` and `object-curly-spacing` ESLint rules later on 8 years ago
Jonas Jenwald 0ddf52aca5 Remove the special handling for `nameddest`s that look like standard pageNumbers 8 years ago
chris.greening cfc2f36f5c Adds additional parameter so background color of canvas can be set 8 years ago
Jonas Jenwald bbe8c3d8ed Enable running a subset of the API unit-tests on Travis 8 years ago
Jonas Jenwald 7a040c05d7 Wait until `PDFDocumentLoadingTask.destroy` is resolved before calling `done` in the API unit-tests 8 years ago
Jonas Jenwald 7560f12a17 Enable the `object-shorthand` ESLint rule 8 years ago
Tim van der Meij 35730148a7
Convert the files in the `/test/unit` folder to ES6 modules 8 years ago
Jonas Jenwald e6db75b2ef Use the `DOMCanvasFactory` in the API unit-tests 8 years ago
Jonas Jenwald d37d271afa [api-minor] Reject the `RenderTask` with an actual `Error`, instead of just a `string`, when rendering is cancelled 8 years ago
Jonas Jenwald bc736fdc7d Adjust the `brace-style` ESLint rule to disallow single lines (and also enable `no-iterator`) 8 years ago
porlan1 d9e1cb7955 unit test files as UMD modules 8 years ago
Jonas Jenwald 27513cd23b [api-minor] Ensure that the `getDocument` Promise is rejected if the `loadingTask` is destroyed, or an `Error` is thrown, inside of the `onPassword` callback (issue 7806) 8 years ago
Jonas Jenwald c850968fa7 Remove `globals` that are now unnecessary thanks to the use of various ESLint environments (e.g. Node, ShellJS, Jasmine) 8 years ago
Jonas Jenwald efbb1e9b1c Fix errors reported by the `new-cap` ESLint rule 8 years ago
Jonas Jenwald e386af7b22 Adjust one of the Page Label unit-tests to use a PDF file where the "St" entry is both present and non-default (i.e. greater than one) 9 years ago
Sean Burke f76cd2ce43 Expose the optional UserUnit entry as a page property 9 years ago
Jonas Jenwald 2d8d8b5e53 Use `stringToPDFString` to sanitizing bad "Prefix" entries in Page Label dictionaries 9 years ago
Jonas Jenwald 2b79782377 [api-minor] Add basic support for `Launch` actions (issue 1778, issue 3897, issue 6616) 9 years ago
Jonas Jenwald d284cfd5eb [api-minor] Add support for relative URLs, in both annotations and the outline, by adding a `docBaseUrl` parameter to `PDFJS.getDocument` (bug 766086) 9 years ago
Jonas Jenwald 42f07c6262 [api-minor] Use the `new URL` constructor when validating URLs in annotations and the outline, as a complement to only checking the protocol, and add a bit more validation to `Catalog_parseDestDictionary` 9 years ago
Jonas Jenwald e64bc1fd13 Move parsing of destination dictionaries to a helper function 9 years ago
Jonas Jenwald 37998076c9 In `display/api.js` ensure that we always reject with an `Error` in `JpegDecode`, and adjust a couple of other rejection sites as well 9 years ago
Jonas Jenwald f297e4d17c [api-minor] Add a parameter to `PDFPageProxy_getTextContent` that controls whether `PartialEvaluator_getTextContent` will attempt to combine same line text items 9 years ago
Jonas Jenwald 72c1df726e Add a `getAttachments` unit-test for a PDF file that actually contains attachments 9 years ago
Jonas Jenwald 01ab15a6f1 [api-minor] Let `Catalog_getPageIndex` check that the `Ref` actually points to a /Page dictionary 9 years ago
Tim van der Meij 6a7012aaca Remove unused variables 9 years ago
Yury Delendik 879340d741 Removes hijack describe() hack from unit tests. 9 years ago
Jonas Jenwald 7163e1eff3 Faster unit-tests by using `beforeAll`/`afterAll` in api_spec.js 9 years ago
Jonas Jenwald ac772017b6 Add unit-tests for destionations in /Names (NameTree) dictionaries where all entries are indirect objects 9 years ago
Yury Delendik 0a700fa29d Updates Jasmine version. 9 years ago
Yury Delendik 0d591719d9 Makes PDF data reading Streams API friendly. 9 years ago
Jonas Jenwald 7cf9de2c17 [api-minor] Change `getOutline` to actually return the RGB color of outline items 9 years ago
Jonas Jenwald 98db068079 Reduce the overall indentation level in `Catalog_readDocumentOutline`, by using early returns, in order to improve readability 9 years ago
Tim van der Meij 5bcf4c1895 Destroy workers when they are no longer needed in the unit tests 9 years ago
Jonas Jenwald 1140a34f5c [api-minor] Change `getPageLabels` to always return the pageLabels, even if they are identical to standard page numbering 9 years ago
Jonas Jenwald 85cf90643f [api-minor] Add support for PageLabels in the API 9 years ago
Jonas Jenwald 0030a82dc3 [api-minor] Add support for URLs in the document outline 9 years ago
Jonas Jenwald 6dfe53b976 [api-minor] Add a parameter to `PDFPageProxy_getTextContent` that enables replacing of all whitespace with standard spaces in the textLayer (issue 6612) 10 years ago
Rob Wu 07f2a43943 Add tests for parallel rendering 10 years ago
Yury Delendik 09772e1e15 Creates PDFWorker, separates fetchDocument from transport. 10 years ago
Jonas Jenwald b05652ca97 [api-minor] Let `getAnnotations` fetch all annotations by default, unless an intent is specified 10 years ago
Manas a2ba1b8189 Uses editorconfig to maintain consistent coding styles 10 years ago
Jonas Jenwald 25e55322c4 Improved `get fingerprint` unit-tests (PR 5124) 10 years ago
Yury Delendik 59c13b32aa Adds destroy method to the document loading task. 10 years ago
Jonas Jenwald e04113a35b Add unit-tests for the `onPassword/onProgress` callbacks of the API 10 years ago
Jonas Jenwald 5987197bd5 Ensure that all `getDocument` unit-tests returns the expected data 10 years ago