mirror of
https://github.com/google/blockly.git
synced 2026-01-09 18:10:08 +01:00
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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user