pdf.js/test/unit
Tim van der Meij 980aa10e04 Refactor annotation rectangle code and add unit tests
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.
2015-07-20 22:01:47 +02:00
..
annotation_layer_spec.js Refactor annotation rectangle code and add unit tests 2015-07-20 22:01:47 +02:00
api_spec.js Add a unit-test that attempts to fetch a non-existent named destination 2015-07-07 22:05:08 +02:00
cmap_spec.js Attempt to infer if a CMap file actually contains just a standard Identity-H/Identity-V map 2015-04-25 11:28:33 +02:00
crypto_spec.js Slightly improved Crypto unit tests 2015-06-10 00:21:40 +02:00
evaluator_spec.js Ignore paint form XObject when the name is missing (issue 4558) 2015-06-22 22:10:26 +02:00
font_spec.js Removing unused code 2014-07-18 22:34:50 +02:00
function_spec.js cleaned whitespace 2015-02-17 11:07:37 -05:00
metadata_spec.js Adds web/* and test/* for jshint target 2013-02-04 12:01:19 -06:00
obj_spec.js cleaned whitespace 2015-02-17 11:07:37 -05:00
parser_spec.js Ignore double negative in Lexer_getNumber (issue 6218) 2015-07-16 12:11:49 +02:00
stream_spec.js cleaned whitespace 2015-02-17 11:07:37 -05:00
testreporter.js Remove SpecialPowers addon 2015-04-03 20:17:20 +02:00
ui_utils_spec.js Use binary search in getVisibleElements() 2015-03-01 17:41:20 +01:00
unit_test.html Add tests and documentation for the annotation border style class 2015-06-17 22:28:08 +02:00
util_spec.js cleaned whitespace 2015-02-17 11:07:37 -05:00