pdf.js/test
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
..
features cleaned whitespace 2015-02-17 11:07:37 -05:00
font cleaned whitespace 2015-02-17 11:07:37 -05:00
mozcentral cleaned whitespace 2015-02-17 11:07:37 -05:00
pdfs Improve robustness of stream parser (invalid length) 2015-07-11 20:12:49 +02:00
resources Merge pull request #5905 from timvandermeij/specialpowers 2015-04-27 10:36:54 -07:00
stats cleaned whitespace 2015-02-17 11:07:37 -05:00
ttx Update fonttools location and version (issue 6223) 2015-07-17 12:51:09 +02:00
unit Refactor annotation rectangle code and add unit tests 2015-07-20 22:01:47 +02:00
.gitignore Ignore test snapshots directory. 2013-03-15 11:24:08 -07:00
downloadutils.js Fixes lint warning W004 in /test 2014-04-11 00:02:33 +02:00
driver.js Add --testfilter (-t) flag to run a specific test 2015-07-18 17:31:56 +02:00
test_manifest.json Improve robustness of stream parser (invalid length) 2015-07-11 20:12:49 +02:00
test_slave.html Implement an option to disable automatic scrolling 2015-05-21 20:19:36 +02:00
test.js Add --testfilter (-t) flag to run a specific test 2015-07-18 17:31:56 +02:00
testutils.js Fixes lint warning W004 in /test 2014-04-11 00:02:33 +02:00
webbrowser.js Tests: Resolve -b to full path in webbrowser.js 2015-07-14 00:20:07 +02:00
webserver.js Fix lint error: "test/webserver.js: line 177, col 106, Line is too long." 2015-01-08 12:22:34 +01:00