mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-06 03:00:30 -04:00
Create a new addTarget
function on the runtime which populates the targets list as well as the executable targets list.
This commit is contained in:
parent
fbee37e915
commit
59a865ef47
7 changed files with 21 additions and 24 deletions
test/integration
|
@ -193,8 +193,7 @@ test('edge activated hat should trigger for both sprites when sprite is cloned',
|
|||
t.equal(numTargetEdgeHats, 1);
|
||||
|
||||
const cloneTarget = vm.runtime.targets[1].makeClone();
|
||||
vm.runtime.targets.push(cloneTarget);
|
||||
vm.runtime.addExecutable(cloneTarget);
|
||||
vm.runtime.addTarget(cloneTarget);
|
||||
|
||||
vm.runtime._step();
|
||||
// Check that the runtime's _edgeActivatedHatValues object has two separate keys
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue