Update naming and implementation for custom procedure blocks

This commit is contained in:
Paul Kaplan 2017-11-16 14:17:08 -05:00
parent ba5b3093f6
commit 34dfbb50ba
7 changed files with 36 additions and 28 deletions

View file

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

View file

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