overleaf/services/clsi/test/unit/js
Jakob Ackermann 294088fb27 [ContentCacheManager] use PDF.js Xref table instead of stream detection (#242)
* make the content cache manager tests configurable

* extend stream content in unit tests

* [ContentCacheManagerTests] prepare for full object caching

* filesystem stream for pdfjs

* working??

* cleaning up

* handle overflow

* [misc] install pdfjs-dist

* [misc] move pdfjs code into app/lib/ and scripts/, also use CamelCase

* [misc] abstract the file loading and parsing of xRef tables into helper

* [misc] pdfjsTests: add snapshot based tests for the Xref table parser

* [misc] FSStream: throw proper error and drop commented code

* [misc] FSStream: integrate throwing of MissingDataException into getter

* [misc] pdfjs: fix eslint errors

* [misc] pdfjs: run format_fix

* [misc] pdfjs: allocate very small non empty dummy buffers explicitly

* [misc] install @overleaf/o-error

* [ContentCacheManager] use PDF.js Xref table instead of stream detection

Co-Authored-By: Brian Gough <brian.gough@overleaf.com>

* [pdfjs] parseXrefTable: handle empty PDF files gracefully

Co-authored-by: Brian Gough <brian.gough@overleaf.com>
2021-05-31 09:20:25 +01:00
..
snapshots/minimalCompile/chunks [ContentCacheManager] use PDF.js Xref table instead of stream detection (#242) 2021-05-31 09:20:25 +01:00
CompileControllerTests.js [misc] merge pdf caching into main (#226) 2021-05-13 14:07:54 +01:00
CompileManagerTests.js [misc] merge pdf caching into main (#226) 2021-05-13 14:07:54 +01:00
ContentCacheManagerTests.js [ContentCacheManager] use PDF.js Xref table instead of stream detection (#242) 2021-05-31 09:20:25 +01:00
ContentTypeMapperTests.js Add a global test setup file 2021-03-12 16:27:33 -05:00
DockerLockManagerTests.js Add a global test setup file 2021-03-12 16:27:33 -05:00
DockerRunnerTests.js Add a global test setup file 2021-03-12 16:27:33 -05:00
DraftModeManagerTests.js Add a global test setup file 2021-03-12 16:27:33 -05:00
LatexRunnerTests.js [LatexRunner] do not emit empty cpu/sys timings 2021-05-19 11:17:08 +01:00
LockManagerTests.js Add a global test setup file 2021-03-12 16:27:33 -05:00
OutputFileFinderTests.js Add a global test setup file 2021-03-12 16:27:33 -05:00
OutputFileOptimiserTests.js Add a global test setup file 2021-03-12 16:27:33 -05:00
ProjectPersistenceManagerTests.js Add a global test setup file 2021-03-12 16:27:33 -05:00
RequestParserTests.js Add a global test setup file 2021-03-12 16:27:33 -05:00
ResourceStateManagerTests.js Add a global test setup file 2021-03-12 16:27:33 -05:00
ResourceWriterTests.js Add a global test setup file 2021-03-12 16:27:33 -05:00
StaticServerForbidSymlinksTests.js Add a global test setup file 2021-03-12 16:27:33 -05:00
TikzManager.js Add a global test setup file 2021-03-12 16:27:33 -05:00
UrlCacheTests.js use fs.copyFile instead of fse.copy in UrlCache module 2021-05-17 10:54:11 +01:00
UrlFetcherTests.js Add a global test setup file 2021-03-12 16:27:33 -05:00