Rewrite tests to allow for multiple timers
Background
https://issues.adblockplus.org/ticket/7375 replaces Ci.nsITimer
directly with setTimeout()
.
Due to the way the tests for Synchronizer
and Notification
are written, however, there can be only one timer at a time. This is not a problem so far because in any test there is at most one Downloader
instance, but it may become a limitation in the future.
The tests could be rewritten to make them more intuitive and more flexible.
What to change
TBD
Edited by Manish Jethani