1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 07:08:08 +02:00
pdf.js/test
Jonas Jenwald bd91f34513 Ensure that we handle indirect objects in all types of Opt entries in ChoiceWidget annotation dictionaries
I haven't got an example where the current code breaks, but given all the previous cases we've seen where PDF generators use indirect objects in Arrays it makes sense to fix this pro-actively.
I've modified the relevant unit-tests slightly, and they would *not* pass without the code changes in this patch.

*Note:* `Dict_getArray` only dereferences Array elements on the "top-level", to avoid recursion issues. Furthermore if you have to loop through the Array at the call-site anyway, then using `Dict_get` in combination with `XRef_fetchIfRef` is a tiny bit more efficient.
2016-12-17 13:44:20 +01:00
..
chromium Add opt-out telemetry to the Chrome extension 2016-06-03 20:36:57 +02:00
features Remove the deprecated mozDash/mozDashOffset canvas 2D context methods 2016-09-15 10:05:40 +02:00
font Remove globals that are now unnecessary thanks to the use of various ESLint environments (e.g. Node, ShellJS, Jasmine) 2016-12-16 21:09:55 +01:00
pdfs Add a parameter to Page_getInheritedPageProp to make it possible to fetch (and dereference) Arrays, and use that for the MediaBox/CropBox getters (issue 7872) 2016-12-08 22:03:42 +01:00
resources Remove 'use strict'; causing failure and unused prefs. 2016-01-14 13:23:48 -08:00
stats Switch to using ESLint, instead of JSHint, for linting 2016-12-16 21:06:36 +01:00
ttx Update fonttools location and version (issue 6223) 2015-07-17 12:51:09 +02:00
unit Ensure that we handle indirect objects in all types of Opt entries in ChoiceWidget annotation dictionaries 2016-12-17 13:44:20 +01:00
.eslintrc Switch to using ESLint, instead of JSHint, for linting 2016-12-16 21:06:36 +01:00
.gitignore Ignore test snapshots directory. 2013-03-15 11:24:08 -07:00
annotation_layer_test.css Choice widget annotations: unit and reference testing 2016-10-05 21:25:29 +02:00
downloadutils.js Switch to using ESLint, instead of JSHint, for linting 2016-12-16 21:06:36 +01:00
driver.js Fix (most) errors reported by the no-multi-spaces ESLint rule 2016-12-12 20:35:51 +01:00
test.js Switch to using ESLint, instead of JSHint, for linting 2016-12-16 21:06:36 +01:00
test_manifest.json Add a parameter to Page_getInheritedPageProp to make it possible to fetch (and dereference) Arrays, and use that for the MediaBox/CropBox getters (issue 7872) 2016-12-08 22:03:42 +01:00
test_slave.html Move all PDFJS.xxx settings into display/global. 2016-04-07 13:46:07 -05:00
testutils.js Switch to using ESLint, instead of JSHint, for linting 2016-12-16 21:06:36 +01:00
text_layer_test.css Better "text" testing. 2015-11-19 11:03:52 -06:00
webbrowser.js Switch to using ESLint, instead of JSHint, for linting 2016-12-16 21:06:36 +01:00
webserver.js Switch to using ESLint, instead of JSHint, for linting 2016-12-16 21:06:36 +01:00