Eventer: Tests
Github
The automated tests run automatically, with results listed below.
The "weak listener" tests are designed to be run interactively (likely on a desktop computer); they require you to initiate a GC (garbage collection) between part 1 and part 2, as well as between part 2 and part 3, of the tests.
NOTE: Because of the unpredictability of GC, it's possible the browser might automatically perform a GC event between running the part 1 tests and part 2 tests, even if you didn't do so. As such, if you don't trigger the GC explicitly, it's possible that the part 2 or part 2 tests pass sometimes, but don't pass other times. However, if you trigger the GC explicitly, the part 2 and part 3 tests should always pass.
To perform a manual GC in your browser:
- In Chrome, you'll need to have browser developer tools open and access the Memory tab
- In Firefox, you'll need to open about:memory in a separate tab