scratch-vm/src
Christopher Willis-Ford 840ffb5df0 test: don't use process.exit to end tests
Newer versions of `tap` run more asynchronously, so sometimes using `process.nextTick(process.exit)`
to end a test would prevent the test from completing correctly. Removing all instances of
`process.nextTick(process.exit)` put tests into three categories:
* the test still worked correctly -- no fixup needed.
* the test would hang because the VM's `_steppingInterval` was keeping
  Node alive. These tests call a new `quit()` method which ends the
  stepping interval.
* the `load-extensions` test needed special attention because the "Video
  Sensing" extension starts its own loop using `setTimeout`. I added a
  `_stopLoop()` method on the extension and directly call that from the
  test. I'm not completely happy with this solution but anything more
  general would likely require a change to the extension spec, so I'm
  leaving that as a followup task.
2022-06-07 11:44:06 -07:00
..
blocks Merge pull request #2329 from adroitwhiz/remove-updatedrawableproperties 2020-09-24 15:50:26 -04:00
dispatch Apply suggestions from code review 2019-03-25 16:32:51 -04:00
engine test: don't use process.exit to end tests 2022-06-07 11:44:06 -07:00
extension-support test: don't use process.exit to end tests 2022-06-07 11:44:06 -07:00
extensions test: don't use process.exit to end tests 2022-06-07 11:44:06 -07:00
import Hook up error handling to bitmap loading flow and add tests for loading missing and corrupt bitmpas from sb2 and sprite2 files 2022-05-23 19:54:45 -04:00
io Remove commented code 2020-11-24 16:54:07 -05:00
playground Fix playground 2021-03-23 16:32:05 -04:00
serialization Update storage and update 'loadSound' to handle null asset from storage. Track additional metadata for broken costumes: 'bitmapResolution' and 'dataFormat'. 2022-05-18 21:26:36 -04:00
sprites Remove RenderedTarget.setSay + its test 2020-05-18 01:35:32 -04:00
util support Scratch Link on ws://127.0.0.1:20111 2022-02-16 15:02:35 -08:00
.eslintrc.js Use es6 lint rules 2017-04-17 15:09:57 -04:00
index.js Cleanup 2017-09-06 00:57:03 -06:00
virtual-machine.js test: don't use process.exit to end tests 2022-06-07 11:44:06 -07:00