scratch-vm/test/unit
Evelyn Eastmond ec432e3b2f Refactor for hardware extensions (#1555)
* Beginning refactor: renaming 'device' to 'peripheral', shortening function names, reordering functions, etc.

* Continuing refactoring: renaming some functions to be more verbose in the runtime, adding JSDocs, etc.

* Changing 'device' to 'peripheral', etc.

* Changing 'session' to 'socket'.

* Fixing EV3 menus and menu arg validation, reordering functions, etc.

* Add _send, add some references to documentation, etc.

* Factored out _outputCommand and _inputCommand, renamed some enums, etc.

* Fixed _outputCommand, some other minor cleanup.

* Make _outputCommand and _inputCommand public.

* Added TODO.

* Renamed BLE UUID enums to be clearer.

* Change WeDo2 in comments to WeDo 2.0, etc.

* Changed some WeDo2Motor command names, cleaned up some JSDocs.

* Beginning a major EV3 refactor.

* WeDo2 formatting and comment changes.

* Motor refactoring in EV3: motorTurnClockwise and motorTurnCounterClockwise initial working state.

* Add reminders to possibly cast motor menu args in WeDo2.

* Continue to move motor commands in EV3 to EV3Motor class, don't create new EV3Motor on every poll cycle, etc.

* Factoring EV3 polling value commands, etc.

* Fixing EV3 motor power, position and button pressed, and some commenting, etc.

* Move EV3 motor position parsing to EV3Motor class, move directCommand and directCompoundCommand functions, some commenting, etc.

* Changed WeDo2 motor label enum name.

* Removed some EV3 motor functions that aren't needed, changed menu label enum names, moved some opcodes up to enums.

* Fixing comments and documentation.

* Some commenting.

* Adding further documentation and references to PDFs, changed reply check to be safer, etc.

* Some comment changes.

* Moving some functions around in EV3 and WeDo2 to match.

* Commenting, etc.

* Some renaming of session, etc.

* Fix stopAllMotors in EV3.

* Fixing clearing of motors in EV3.

* Some comment changes.

* Change runtime .extensions/registerExtension to .peripheralExtensions/registerPeripheralExtension.

* Renaming outputCommand/inputCommand to generateOutputCommand/generateInputCommand, etc.

* Moved motorCommandIDs to EV3Motor class, renamed directCommand to generateCommand, etc.

* Adding a reminder to rename something.

* JSDoc fix in EV3Motor class.

* Fixing microbit function name.

* Adding a todo item.

* Changing Ev3 menu formats to be backwards compatible, moving a BLE function up.

* Fixing EV3 ports again, and button pressed returning a boolean.

* Fixing menu value to be a string in EV3.
2018-09-07 17:01:23 -04:00
..
blocks_control.js Use round() instead of floor() in repeat, add unit test 2018-08-14 20:27:18 -03:00
blocks_data.js Lint 2018-03-31 13:41:39 -03:00
blocks_event.js Add implementation for "When loudness >" block 2018-07-05 09:42:00 -04:00
blocks_looks.js Remove unused getCostumeName function 2018-06-12 19:32:29 -03:00
blocks_operators.js Pass with --fix 2017-08-26 13:24:10 -04:00
blocks_procedures.js Revert "Fix test" 2017-12-13 15:37:44 -05:00
blocks_sensing.js Add UserData ioDevice for setting and getting username from blocks 2018-07-23 09:38:58 -04:00
blocks_sounds.js Revert "Revert #1260, #1258, #1239" 2018-06-22 09:33:08 -04:00
dispatch.js Refactor common code in {central,worker}-dispatch 2017-08-09 17:30:00 -04:00
engine_adapter.js Make sure to set comment property of block when creating a new block via XML using the adapter. Update unit tests. 2018-06-15 13:58:03 -04:00
engine_blocks.js Add a test for 'getAllVariableAndListReferences' function. 2018-06-20 10:32:36 -04:00
engine_runtime.js fix file name in test 2017-05-30 10:24:09 -04:00
engine_sequencer.js Revert "Revert "Push reported"" 2018-04-16 13:21:53 -04:00
engine_target.js Add unit tests for new duplicate variable functions on target. 2018-08-07 18:21:01 -04:00
engine_thread.js turn reporter tree into instruction sequence 2018-06-12 14:21:40 -04:00
extension_conversion.js All tests passing 2018-04-20 10:29:29 -04:00
extension_microbit.js MicroBit extension, Scratch Link first draft. (#1230) 2018-06-18 14:56:51 -04:00
extension_music.js Fix runtime scope and unit test 2018-04-05 15:01:52 -04:00
extension_video_sensing.js Use string enumerated values for videoSensing sensor block 2018-04-11 10:30:58 -04:00
extension_video_sensing_center.png Test VideoMotion and VideoSensing blocks 2018-04-06 18:09:50 -04:00
extension_video_sensing_down-10.png Test VideoMotion and VideoSensing blocks 2018-04-06 18:09:50 -04:00
extension_video_sensing_left-5.png Test VideoMotion and VideoSensing blocks 2018-04-06 18:09:50 -04:00
extension_video_sensing_left-10.png Test VideoMotion and VideoSensing blocks 2018-04-06 18:09:50 -04:00
io_clock.js Use ES6 linting rules in the project root 2017-04-24 15:37:58 -04:00
io_deviceManager.js Address feedback from review 2017-11-27 15:00:53 -05:00
io_keyboard.js Update unit tests 2018-04-25 12:26:52 -04:00
io_mouse.js Update the mouse io to give scratch coordinates and client coordinates 2018-01-09 10:37:16 -05:00
io_mousewheel.js Mouse wheel IO system 2018-01-26 17:13:01 -04:00
io_scratchBLE.js Refactor for hardware extensions (#1555) 2018-09-07 17:01:23 -04:00
io_scratchBT.js Refactor for hardware extensions (#1555) 2018-09-07 17:01:23 -04:00
io_userData.js Add UserData ioDevice for setting and getting username from blocks 2018-07-23 09:38:58 -04:00
maybe_format_message.js Add tests for maybeFormatMessage 2018-04-06 12:26:12 -07:00
serialization_sb2.js Order sprites in 2.0 projects based on the serailzied indexInLibrary property. Store original ordering (e.g. layer order of sprites on the stage) to use when installing targets. 2018-07-23 15:25:05 -04:00
serialization_sb3.js Add comments for deserialization and add tests 2018-08-20 13:25:24 -04:00
spec.js Tests and cleanup of addSprite3 so that .sprite3 format does not need to be nested inside an extra {targets: ...} 2018-05-04 11:00:45 -04:00
sprites_rendered-target.js Add and update tests for deleteCostume functionality. 2018-08-21 15:42:14 -04:00
util_base64.js MicroBit extension, Scratch Link first draft. (#1230) 2018-06-18 14:56:51 -04:00
util_cast.js Use ES6 linting rules in the project root 2017-04-24 15:37:58 -04:00
util_color.js Use ES6 linting rules in the project root 2017-04-24 15:37:58 -04:00
util_jsonrpc-web-socket.js MicroBit extension, Scratch Link first draft. (#1230) 2018-06-18 14:56:51 -04:00
util_jsonrpc.js MicroBit extension, Scratch Link first draft. (#1230) 2018-06-18 14:56:51 -04:00
util_math.js Preserve sprite layer order information across saving and loading an sb3. 2018-07-24 11:00:48 -04:00
util_rateLimiter.js Rate-limiting with a token bucket for the WeDo extension (#1540) 2018-08-29 17:37:59 -04:00
util_string.js Specify dataFormat when loading asset for import 2017-05-24 15:35:10 -07:00
util_timer.js Pass with --fix 2017-08-26 13:24:10 -04:00
util_xml.js Use ES6 linting rules in the project root 2017-04-24 15:37:58 -04:00
virtual-machine.js Add and update tests for deleteCostume functionality. 2018-08-21 15:42:14 -04:00