pdf.js/test/unit
mduan eb8f4e8343 Handle some illegal characters in hex string
Do not throw exception when hex strings are in the wrong format

Currently pdf.js is throwing an exception for the following hex string:

`<7 0 2 15 5 2 2 2 4 3 2 4>`

The issue is that the 15 is not a valid hex character so pdf.js ends up
throwing an exception.

This diff changes the parser to process the above hex string as follow:

`70 21 55 2 24 32` (Note: the final 4 of the hex string is ignored)

replicating the behaviour of MuPDF, and doesn't throw an exception.
2013-01-08 15:29:24 -08:00
..
api_spec.js Increase wait timeout for api unit tests. 2012-10-15 11:37:50 -07:00
crypto_spec.js Fixes user and owner passwords logic 2012-05-12 21:34:32 -05:00
evaluator_spec.js Add prefixes for literals 2012-05-20 14:05:23 -05:00
font_spec.js Fixes CFF test and CFF int16 parsing 2012-08-29 12:58:12 -05:00
function_spec.js Handle junk at the end of postscript functions. 2012-04-18 09:48:28 -07:00
metadata_spec.js Fix broken metadata 2012-04-23 16:43:20 -05:00
obj_spec.js Add Unit tests for RefSet. 2012-01-07 22:22:22 +02:00
parser_spec.js Handle some illegal characters in hex string 2013-01-08 15:29:24 -08:00
stream_spec.js Fix nit. 2012-04-19 12:34:50 -07:00
testreporter.js Allow time to finish requests. 2012-04-19 14:19:08 -07:00
unit_test.html Fixes getNumber at the end of stream 2012-10-24 10:47:16 -05:00
util_spec.js fix of combineUrl(baseUrl, url) in case of url - null, empty, undefined + unittests 2012-11-24 04:25:49 +04:00