mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Use the SimpleLinkService
when running "annotations" reference tests
Rather than (basically) duplicating the `SimpleLinkService` in `test/driver.js`, with potential test failuires if you forget to update the test mock, it seems much nicer to just re-use the viewer component. Note that `SimpleLinkService` is already bundled into the `build/components/pdf_viewer.js` file. Hence we only need to expose it similar to the other viewer components in that file, and make sure that the `gulp components` command runs as part of the test-setup.
This commit is contained in:
parent
f2618eb2e4
commit
1ebbdc253a
4 changed files with 9 additions and 42 deletions
|
@ -32,6 +32,7 @@ var PDFJS = pdfjsLib.PDFJS;
|
|||
PDFJS.PDFViewer = pdfjsWebPDFViewer.PDFViewer;
|
||||
PDFJS.PDFPageView = pdfjsWebPDFPageView.PDFPageView;
|
||||
PDFJS.PDFLinkService = pdfjsWebPDFLinkService.PDFLinkService;
|
||||
PDFJS.SimpleLinkService = pdfjsWebPDFLinkService.SimpleLinkService;
|
||||
PDFJS.TextLayerBuilder = pdfjsWebTextLayerBuilder.TextLayerBuilder;
|
||||
PDFJS.DefaultTextLayerFactory =
|
||||
pdfjsWebTextLayerBuilder.DefaultTextLayerFactory;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue