pdf.js/test/unit
Jonas Jenwald f59c3a0644 Remove the remaining usages of new {Name,Cmd} in favor of {Name,Cmd}.get
Using `new {Name,Cmd}` should be avoided, since it creates a new object on *every* call, whereas `{Name,Cmd}.get` uses caches to only create *one* object regardless of how many times they are called.

Most of these are found in the unit-tests, where increased memory usage probably doesn't matter very much. But it still seems good to get rid of those cases, since no part of the codebase ought to advertise that usage.

Given the small size of the patch, I'm also tweaking a few comments and class names.
2016-04-08 12:14:05 +02:00
..
annotation_layer_spec.js Updates Jasmine version. 2016-03-29 09:34:13 -05:00
api_spec.js Faster unit-tests by using beforeAll/afterAll in api_spec.js 2016-03-30 15:32:01 +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 Updates Jasmine version. 2016-03-29 09:34:13 -05: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
font_spec.js Extract Type1Parser from fonts.js 2016-04-01 23:38:53 +02:00
function_spec.js Updates Jasmine version. 2016-03-29 09:34:13 -05:00
jasmine-boot.js Extract Type1Parser from fonts.js 2016-04-01 23:38:53 +02:00
metadata_spec.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
network_spec.js Updates Jasmine version. 2016-03-29 09:34:13 -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 Remove the remaining usages of new {Name,Cmd} in favor of {Name,Cmd}.get 2016-04-08 12:14:05 +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
ui_utils_spec.js Strip null (\x00) characters from the URLs in LinkAnnotations (issue 6832) 2016-01-04 21:55:20 +01:00
unit_test.html Updates Jasmine version. 2016-03-29 09:34:13 -05:00
util_spec.js Removes global PDFJS usage from the src/core/. 2016-03-23 19:24:37 -05:00