mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-09 12:33:58 -04:00
Add sprite name incrementing and reserved naming
This commit is contained in:
parent
052ecef91c
commit
8bbb395b35
3 changed files with 46 additions and 4 deletions
test/integration
|
@ -26,7 +26,7 @@ test('complex', function (t) {
|
|||
var targets = data.targetList;
|
||||
for (var i in targets) {
|
||||
if (targets[i].isStage === true) continue;
|
||||
if (targets[i].name === 'test') continue;
|
||||
if (targets[i].name.match(/test/)) continue;
|
||||
|
||||
vm.setEditingTarget(targets[i].id);
|
||||
vm.renameSprite(targets[i].id, 'test');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue