mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-28 22:30:40 -04:00
Update naming and implementation for custom procedure blocks
This commit is contained in:
parent
ba5b3093f6
commit
34dfbb50ba
7 changed files with 36 additions and 28 deletions
|
@ -36,7 +36,7 @@ const generateBlock = function (id) {
|
|||
block: 'fakeBlock',
|
||||
name: 'fakeName',
|
||||
next: null,
|
||||
opcode: 'procedures_defnoreturn',
|
||||
opcode: 'procedures_definition',
|
||||
mutation: {proccode: 'fakeCode'},
|
||||
parent: null,
|
||||
shadow: false,
|
||||
|
@ -55,7 +55,7 @@ const generateBlockInput = function (id, next, inp) {
|
|||
block: 'fakeBlock',
|
||||
name: 'fakeName',
|
||||
next: next,
|
||||
opcode: 'procedures_defnoreturn',
|
||||
opcode: 'procedures_definition',
|
||||
mutation: {proccode: 'fakeCode'},
|
||||
parent: null,
|
||||
shadow: false,
|
||||
|
@ -156,7 +156,7 @@ test('stepToProcedure', t => {
|
|||
|
||||
th.target.blocks.createBlock({
|
||||
id: 'internalId',
|
||||
opcode: 'procedures_callnoreturn_internal',
|
||||
opcode: 'procedures_prototype',
|
||||
mutation: {
|
||||
proccode: 'othercode'
|
||||
}
|
||||
|
|
|
@ -194,7 +194,7 @@ test('stopThisScript', t => {
|
|||
block: 'fakeBlock',
|
||||
name: 'STEPS',
|
||||
next: null,
|
||||
opcode: 'procedures_callnoreturn',
|
||||
opcode: 'procedures_call',
|
||||
mutation: {proccode: 'fakeCode'},
|
||||
parent: null,
|
||||
shadow: false,
|
||||
|
@ -246,7 +246,7 @@ test('isRecursiveCall', t => {
|
|||
block: 'fakeBlock',
|
||||
name: 'STEPS',
|
||||
next: null,
|
||||
opcode: 'procedures_callnoreturn',
|
||||
opcode: 'procedures_call',
|
||||
mutation: {proccode: 'fakeCode'},
|
||||
parent: null,
|
||||
shadow: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue