feat: trigger updates to IProcedureBlock blocks (#6570)

* feat: add interface and method for updating procedure blocks

* chore: remove module ID declarations

* feat: add actually triggering updates

* chore: format

* chore: clean up tests
This commit is contained in:
Beka Westberg
2022-10-25 08:56:13 -07:00
committed by GitHub
parent 7ffe1fa89f
commit c9ced48de2
6 changed files with 60 additions and 6 deletions

View File

@@ -13,18 +13,19 @@ suite('Procedure Map', function() {
sharedTestSetup.call(this);
this.workspace = new Blockly.Workspace();
// this.procedureMap = this.workspace.getProcedureMap();
this.procedureMap =
new Blockly.procedures.ObservableProcedureMap(this.workspace);
});
teardown(function() {
sharedTestTeardown.call(this);
});
// TODO (#6515): Unskip tests.
suite.skip('triggering block updates', function() {
suite('triggering block updates', function() {
setup(function() {
Blockly.Blocks['procedure_mock'] = {
init: function() { },
doProcedureUpdate: function() {},
doProcedureUpdate: function() { },
};
this.procedureBlock = this.workspace.newBlock('procedure_mock');