pdf.js/test
Tim van der Meij 10574a0f8a
Remove obsolete done callbacks from the unit tests
The done callbacks are an outdated mechanism to signal Jasmine that a
unit test is done, mostly in cases where a unit test needed to wait for
an asynchronous operation to complete before doing its assertions.
Nowadays a much better mechanism is in place for that, namely simply
passing an asynchronous function to Jasmine, so we don't need callbacks
anymore (which require more code and may be more difficult to reason
about).

In these particular cases though the done callbacks never had any real
use since nothing asynchronous happens in these places. Synchronous
functions don't need to use done callbacks since Jasmine simply knows
it's done when the function reaches its normal end, so we can safely get
rid of these callbacks. The telltale sign is if the done callback is
used unconditionally at the end of the function.

This is all done in an effort to over time get rid of all callbacks in
the unit test code.
2021-04-10 20:29:39 +02:00
..
chromium Enable the ESLint no-var rule globally 2021-03-13 16:12:53 +01:00
font Enable the ESLint no-var rule globally 2021-03-13 16:12:53 +01:00
integration Add support for basic structure tree for accessibility. 2021-04-09 09:56:28 -07:00
pdfs Merge pull request #13214 from calixteman/signatures 2021-04-10 19:35:16 +02:00
resources Introduce Puppeteer for handling browsers during tests 2020-04-27 13:03:12 +02:00
stats Enable the ESLint no-var rule in the test/stats/ folder 2021-03-14 10:15:45 +01:00
ttx Update fonttools location and version (issue 6223) 2015-07-17 12:51:09 +02:00
types Add typescript definitions 2020-07-30 11:10:37 +02:00
unit Remove obsolete done callbacks from the unit tests 2021-04-10 20:29:39 +02:00
.eslintrc Enable ESLint rules that no longer need to be disabled on a directory/file-basis 2021-01-22 17:47:03 +01:00
.gitignore Ignore test snapshots directory. 2013-03-15 11:24:08 -07:00
add_test.js Enable the ESLint no-var rule in test/add_test.js 2021-03-14 10:25:51 +01:00
annotation_layer_builder_overrides.css Enable the Stylelint length-zero-no-unit rule 2021-01-10 14:09:36 +01:00
downloadutils.js Enable the ESLint no-var rule globally 2021-03-13 16:12:53 +01:00
driver.js Merge pull request #13171 from brendandahl/struct-tree 2021-04-09 21:32:44 +02:00
integration-boot.js Add support for basic structure tree for accessibility. 2021-04-09 09:56:28 -07:00
test_manifest.json Merge pull request #13214 from calixteman/signatures 2021-04-10 19:35:16 +02:00
test_slave.html Use the SimpleLinkService when running "annotations" reference tests 2017-09-12 15:24:46 +02:00
test.js Improve handling of *linked* test-cases for the unit/integration suites (#13160) 2021-03-30 13:24:04 +02:00
testutils.js Enable the ESLint no-var rule globally 2021-03-13 16:12:53 +01:00
text_layer_test.css Add support for basic structure tree for accessibility. 2021-04-09 09:56:28 -07:00
webserver.js Enable the ESLint no-var rule globally 2021-03-13 16:12:53 +01:00