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:
Karishma Chadha 2019-01-14 11:48:11 -05:00
parent fbee37e915
commit 59a865ef47
7 changed files with 21 additions and 24 deletions

View file

@ -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