1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-29 15:47:57 +02:00
pdf.js/test/unit
Tim van der Meij 0991c06395 Refactor annotation flags code
This patch makes it possible to set and get all possible flags that the PDF specification defines. Even though we do not support all possible annotation types and not all possible annotation flags yet, this general framework makes it easy to access all flags for each annotation such that annotation type implementations can use this information.

We add constants for all possible annotation flags such that we do not need to hardcode the flags in the code anymore. The `isViewable()` and `isPrintable()` methods are now easier to read. Additionally, unit tests have been added to ensure correct behavior.

This is another part of #5218.
2015-11-22 01:06:37 +01:00
..
annotation_layer_spec.js Refactor annotation flags code 2015-11-22 01:06:37 +01:00
api_spec.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
cmap_spec.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
crypto_spec.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
evaluator_spec.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
font_spec.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
function_spec.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
metadata_spec.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
obj_spec.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
parser_spec.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
stream_spec.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
testreporter.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
ui_utils_spec.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
unit_test.html Move text layer building logic into src/display/text_layer.js 2015-11-19 10:50:27 -06:00
util_spec.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30