pdf.js/test/unit
Jonas Jenwald 088ce6c009 Add a unit-test to check that ProblematicCharRanges contains valid entries
When adding new entries to `ProblematicCharRanges`, you have to be careful to not make any mistakes since that could cause glyph mapping issues.
Currently the existing reference tests should probably help catch any errors, but based on experience I think that having a unit-test which specifically checks `ProblematicCharRanges` would be both helpful and timesaving when modifying/reviewing changes to this code.

Hence this patch which adds a function (and unit-test) that is used to validate the entries in `ProblematicCharRanges`, and also checks that we don't accidentally add more character ranges than the Private Use Area can actually contain.
The way that the validation code, and thus the unit-test, is implemented also means that we have an easy way to tell how much of the Private Use Area is potentially utilized by re-mapped characters.
2016-08-27 11:56:00 +02:00
..
annotation_layer_spec.js Prevent errors when parsing Annotations with missing (or invalid) /Subtype entries (issue 7446) 2016-07-25 13:59:26 +02:00
api_spec.js [api-minor] Add a parameter to PDFPageProxy_getTextContent that controls whether PartialEvaluator_getTextContent will attempt to combine same line text items 2016-07-19 13:38:57 +02:00
cff_parser_spec.js Attempt to recover valid format 3 FDSelect data from broken CFF fonts (bug 1146106) 2016-06-06 18:20:52 +02:00
cmap_spec.js Remove the remaining usages of new {Name,Cmd} in favor of {Name,Cmd}.get 2016-04-08 12:14:05 +02:00
crypto_spec.js Add a couple of CipherTransformFactory unit-tests to check that blank passwords are correctly rejected 2016-04-16 20:24:55 +02:00
dom_utils_spec.js Use beforeAll/afterAll in isExternalLinkTargetSet in dom_utils_spec.js (issue 6905) 2016-04-07 14:00:40 +02:00
evaluator_spec.js Updates Jasmine version. 2016-03-29 09:34:13 -05:00
fonts_spec.js Add a unit-test to check that ProblematicCharRanges contains valid entries 2016-08-27 11:56:00 +02:00
function_spec.js Updates Jasmine version. 2016-03-29 09:34:13 -05:00
jasmine-boot.js Add basic unit-tests for unicode.js 2016-05-19 19:45:45 +02:00
metadata_spec.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
network_spec.js Removes hijack describe() hack from unit tests. 2016-04-11 07:37:35 -05:00
parser_spec.js Ensure that Lexer_getName does not fail if a Name contains in invalid usage of the NUMBER SIGN (#) (issue 6692) 2015-11-28 11:59:09 +01:00
primitives_spec.js Add unit-tests for asynchronous methods in primitives.js 2016-08-21 18:44:58 +02:00
stream_spec.js Updates Jasmine version. 2016-03-29 09:34:13 -05:00
testreporter.js Updates Jasmine version. 2016-03-29 09:34:13 -05:00
type1_parser_spec.js Split the font_spec.js unit-tests into cff_parser_spec.js and type1_parser_spec.js 2016-05-03 09:37:36 +02:00
ui_utils_spec.js Adds EventBus. 2016-04-28 06:57:24 -05:00
unicode_spec.js Add basic unit-tests for unicode.js 2016-05-19 19:45:45 +02:00
unit_test.html Add a unit-test to check that ProblematicCharRanges contains valid entries 2016-08-27 11:56:00 +02:00
util_spec.js Move isDict unit-tests from util_spec.js to primitives_spec.js 2016-04-16 20:32:46 +02:00