1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

fix reftests after #12107

The f1040-annotations reftest started hanging after #12107. We traced
this to `TypeError: can't access property "getOrCreateValue", storage is
undefined`.

We essentially need to add `annotationStorage` to the parameters in
test/driver.js.
This commit is contained in:
Aki Sasaki 2020-07-30 12:25:10 -07:00
parent eb4d6a0652
commit 7bb65bab7f
2 changed files with 4 additions and 0 deletions

View file

@ -220,6 +220,7 @@ var rasterizeAnnotationLayer = (function rasterizeAnnotationLayerClosure() {
linkService: new pdfjsViewer.SimpleLinkService(),
imageResourcesPath,
renderInteractiveForms,
annotationStorage: new pdfjsLib.AnnotationStorage(),
};
pdfjsLib.AnnotationLayer.render(parameters);