pdf.js/test/unit
Jonas Jenwald af636aae96 Add a parameter to the isName function that enables checking not just that something is a Name, but also that the actual name properties matches
This is similar to the existing `isCmd` and `isDict` functions, which already support similar kind of checks.
With the updated `isName` function, we'll be able to simplify many callsites from: `isName(someVariable) && someVariable.name === 'someName'` to: `isName(someVariable, 'someName')`.
2016-08-10 11:15:03 +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
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 a parameter to the isName function that enables checking not just that something is a Name, but also that the actual name properties matches 2016-08-10 11:15:03 +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 basic unit-tests for unicode.js 2016-05-19 19:45:45 +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