scratch-vm/src/extensions
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
..
scratch3_boost Merge pull request #2231 from knandersen/bugfix/2230 2019-09-19 17:44:03 -04:00
scratch3_ev3 Merge pull request #2211 from evhan55/ergonomics/1568 2019-06-28 12:09:24 -04:00
scratch3_gdx_for Lint (remove logs, add spaces) 2019-06-27 15:48:30 -04:00
scratch3_makeymakey for compatibility, make all existing extension menus accept reporters 2019-06-14 12:29:32 -07:00
scratch3_microbit Lint (remove logs, add spaces) 2019-06-27 15:48:30 -04:00
scratch3_music for compatibility, make all existing extension menus accept reporters 2019-06-14 12:29:32 -07:00
scratch3_pen Merge pull request #2329 from adroitwhiz/remove-updatedrawableproperties 2020-09-24 15:50:26 -04:00
scratch3_speech2text Remove "Don't translate Google" 2018-10-13 05:43:07 +09:00
scratch3_text2speech Clean up TTS request code 2021-03-04 00:29:50 -05:00
scratch3_translate Merge pull request #2891 from adroitwhiz/remove-nets 2021-03-08 11:10:20 -08:00
scratch3_video_sensing test: don't use process.exit to end tests 2022-06-07 11:44:06 -07:00
scratch3_wedo2 Changed to rely on _getTiltAngle() instead of calculating by myself 2020-05-23 09:14:42 +08:00