1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 01:28:06 +02:00
pdf.js/examples/node
Rob Wu 9caaaf3a91 Add setStubs/unsetStubs to domstubs to support testing
Do not directly export to global. Instead, export all stubs in domstubs.js and
add a method setStubs to assign all exported stubs to a namespace. Then replace
the import domstubs with an explicit call to this setStubs method.  Also added
unsetStubs for undoing the changes. This is done to allow unit testing of the
SVG backend without namespace pollution.
2017-07-10 18:45:47 +02:00
..
pdf2png Adds gulp dist-install command; using pdfjs-dist package in examples. 2017-06-12 10:22:16 -05:00
domparsermock.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
domstubs.js Add setStubs/unsetStubs to domstubs to support testing 2017-07-10 18:45:47 +02:00
getinfo.js Adds gulp dist-install command; using pdfjs-dist package in examples. 2017-06-12 10:22:16 -05:00
pdf2svg.js Add setStubs/unsetStubs to domstubs to support testing 2017-07-10 18:45:47 +02:00