scratch-vm/test/unit
Paul Kaplan 140094a7ad Make "when clicked" blocks target dependent.
This involves adding a new opcode, event_whenstageclicked, and adding a
method to the blocks container to update the opcode pair depending on
whether the target is the stage. This method is then called in two
places: first after the sb2 import parses the blocks (not done in the
sb2 parsing itself because no other blocks are target specific) and then
again when blocks are shared between targets.

Also added tests for the block container method, and a fixture project
that tests the opcode splitting on sb2 import.
2018-03-20 10:41:50 -04:00
..
blocks_control.js Fix remaining lint issues 2017-08-26 13:24:10 -04:00
blocks_event.js Bugfix for scratch-gui issue #994, where executing a broadcast block from the flyout was creating a conflicting variable, causing a fatal error. 2017-12-04 18:01:29 -05:00
blocks_looks.js Fix tests 2018-02-22 15:45:41 -05: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 setDragMode primitive and unit test 2017-12-29 09:38:21 -05:00
blocks_sounds.js Move music-related unit tests into a separate file 2017-11-07 16:26:20 -05:00
dispatch.js Refactor common code in {central,worker}-dispatch 2017-08-09 17:30:00 -04:00
engine_adapter.js Correctly deserialize HTML entities in block DOM 2017-10-09 01:19:55 +03:00
engine_blocks.js Make "when clicked" blocks target dependent. 2018-03-20 10:41:50 -04:00
engine_runtime.js fix file name in test 2017-05-30 10:24:09 -04:00
engine_sequencer.js Revert "Push reported" 2018-02-02 12:42:09 -05:00
engine_target.js Bugfix for scratch-gui issue #994, where executing a broadcast block from the flyout was creating a conflicting variable, causing a fatal error. 2017-12-04 18:01:29 -05:00
engine_thread.js Revert "Push reported" 2018-02-02 12:42:09 -05:00
extension_music.js Stub runtime to fix unit test 2018-02-27 15:38:34 -05: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 Use ES6 linting rules in the project root 2017-04-24 15:37:58 -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
serialization_sb2.js Make "when clicked" blocks target dependent. 2018-03-20 10:41:50 -04:00
serialization_sb3.js Fix tests & a typo 2017-11-03 11:42:20 -07:00
spec.js Add to the vm spec 2017-05-22 08:17:28 -04:00
sprites_rendered-target.js Fix tests 2018-02-22 15:45:41 -05: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_math.js Use ES6 linting rules in the project root 2017-04-24 15:37:58 -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 Duplicating sprite should give new sprite a fresh name. 2018-02-26 23:17:25 -05:00