980aa10e04
This patch refactors the code responsible for setting the annotation's rectangle. Its goal is to: - Actually check that the input array is actually an array, and if so, that it contains exactly four elements. - Only call `normalizeRect` if the input array is valid, i.e., we do not call it for the default rectangle anymore. Unit tests are provided just like with the other patches in this series. |
||
---|---|---|
.. | ||
annotation_layer_spec.js | ||
api_spec.js | ||
cmap_spec.js | ||
crypto_spec.js | ||
evaluator_spec.js | ||
font_spec.js | ||
function_spec.js | ||
metadata_spec.js | ||
obj_spec.js | ||
parser_spec.js | ||
stream_spec.js | ||
testreporter.js | ||
ui_utils_spec.js | ||
unit_test.html | ||
util_spec.js |